1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00

systemd-python: allow threads around flush

flush() is potentially costly.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-05-09 18:28:15 -04:00
parent 04b33f69b6
commit c15602af5e

View File

@ -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;
}