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