summaryrefslogtreecommitdiff
path: root/src/python-systemd
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-09 18:28:15 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-05-09 18:28:24 -0400
commitc15602af5efd0cf8d30c6ad8161e0442acb5dce2 (patch)
tree5634a380be8a8306d3c004e1e0e6c3521c5c7b45 /src/python-systemd
parent04b33f69b6fba648b0d48aca03b9310b3cfdb02d (diff)
systemd-python: allow threads around flush
flush() is potentially costly.
Diffstat (limited to 'src/python-systemd')
-rw-r--r--src/python-systemd/login.c2
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;
}