mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Issue #8407: signal.sigwait() releases the GIL
Initial patch by Charles-François Natali.
This commit is contained in:
parent
589f89e2ad
commit
10c30d6764
2 changed files with 21 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue