chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Properly check for overflow in offsets
[elogind.git]
/
src
/
python-systemd
/
login.c
diff --git
a/src/python-systemd/login.c
b/src/python-systemd/login.c
index b5cb811ec1ee46e7ca6fdcad8f4a3f18ddb9f287..1e86193f6be8f3a6ca29838ee6e53acfb4627e2a 100644
(file)
--- 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;
}