mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-04 15:58:29 +00:00
systemd-python: allow threads around flush
flush() is potentially costly.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user