summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-07-23 04:13:41 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-07-23 04:13:41 (GMT)
commitbd8b443742d155b5ed99ba72defbac9565529c5a (patch)
tree3ddbbf6f8995a3b3be46447cbc23c0686449e1e9 /Modules/_multiprocessing
parent525a949251686a9f8c795f0166797700ac56b77b (diff)
parent1fd497ed91a14eabaf37e9b3f17dde8c3169ef25 (diff)
downloadcpython-bd8b443742d155b5ed99ba72defbac9565529c5a.zip
cpython-bd8b443742d155b5ed99ba72defbac9565529c5a.tar.gz
cpython-bd8b443742d155b5ed99ba72defbac9565529c5a.tar.bz2
Issue #27591: Merge from 3.5
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r--Modules/_multiprocessing/semaphore.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c
index de85a90..cea962a 100644
--- a/Modules/_multiprocessing/semaphore.c
+++ b/Modules/_multiprocessing/semaphore.c
@@ -114,6 +114,9 @@ semlock_acquire(SemLockObject *self, PyObject *args, PyObject *kwds)
assert(sigint_event != NULL);
handles[nhandles++] = sigint_event;
}
+ else {
+ sigint_event = NULL;
+ }
/* do the wait */
Py_BEGIN_ALLOW_THREADS