diff options
Diffstat (limited to 'src/python-systemd/login.c')
-rw-r--r-- | src/python-systemd/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/python-systemd/login.c b/src/python-systemd/login.c index b5cb811ec1..1e86193f6b 100644 --- a/src/python-systemd/login.c +++ b/src/python-systemd/login.c @@ -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; } |