From c15602af5efd0cf8d30c6ad8161e0442acb5dce2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Thu, 9 May 2013 18:28:15 -0400 Subject: [PATCH] systemd-python: allow threads around flush flush() is potentially costly. --- src/python-systemd/login.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.30.2