X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fpython-systemd%2Flogin.c;h=1e86193f6be8f3a6ca29838ee6e53acfb4627e2a;hb=a688baa8b71f9c74500f7883dfb137194874266a;hp=b5cb811ec1ee46e7ca6fdcad8f4a3f18ddb9f287;hpb=04b33f69b6fba648b0d48aca03b9310b3cfdb02d;p=elogind.git diff --git a/src/python-systemd/login.c b/src/python-systemd/login.c index b5cb811ec..1e86193f6 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; }