From: Zbigniew Jędrzejewski-Szmek Date: Thu, 9 May 2013 22:28:15 +0000 (-0400) Subject: systemd-python: allow threads around flush X-Git-Tag: v205~270 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=c15602af5efd0cf8d30c6ad8161e0442acb5dce2;ds=sidebyside systemd-python: allow threads around flush flush() is potentially costly. --- 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; }