mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
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 New Issue
Block a user