diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-09 23:39:53 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-06-09 23:39:53 (GMT) |
commit | 10c30d676432b995d19308855a5ed40f87353074 (patch) | |
tree | 3891dd9f9c15dc035362f5eb583a41b6e1f02462 /Modules | |
parent | 589f89e2ad08a6cae34d90b227d3ffcfe1c06216 (diff) | |
download | cpython-10c30d676432b995d19308855a5ed40f87353074.zip cpython-10c30d676432b995d19308855a5ed40f87353074.tar.gz cpython-10c30d676432b995d19308855a5ed40f87353074.tar.bz2 |
Issue #8407: signal.sigwait() releases the GIL
Initial patch by Charles-François Natali.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/signalmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 6d27ab3..94e6bcb 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -662,7 +662,9 @@ signal_sigwait(PyObject *self, PyObject *args) if (iterable_to_sigset(signals, &set)) return NULL; + Py_BEGIN_ALLOW_THREADS err = sigwait(&set, &signum); + Py_END_ALLOW_THREADS if (err) { errno = err; return PyErr_SetFromErrno(PyExc_OSError); |