systemd-python: allow threads around flush
flush() is potentially costly.
This commit is contained in:
parent
04b33f69b6
commit
c15602af5e
|
@ -271,7 +271,9 @@ static PyObject* Monitor_flush(Monitor *self, PyObject *args)
|
|||
assert(self);
|
||||
assert(!args);
|
||||
|
||||
Py_BEGIN_ALLOW_THREADS
|
||||
sd_login_monitor_flush(self->monitor);
|
||||
Py_END_ALLOW_THREADS
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue