[Python-checkins] cpython (3.5): Issue #27591: Set sigint_event to NULL if _PyOS_IsMainThread() returns false
berker.peksag
python-checkins at python.org
Sat Jul 23 00:13:45 EDT 2016
https://hg.python.org/cpython/rev/da955567d7c7
changeset: 102422:da955567d7c7
branch: 3.5
parent: 102420:bd61bcd9bee8
user: Berker Peksag <berker.peksag at gmail.com>
date: Sat Jul 23 07:13:14 2016 +0300
summary:
Issue #27591: Set sigint_event to NULL if _PyOS_IsMainThread() returns false
Patch by Chris Angelico.
files:
Modules/_multiprocessing/semaphore.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Modules/_multiprocessing/semaphore.c b/Modules/_multiprocessing/semaphore.c
--- a/Modules/_multiprocessing/semaphore.c
+++ b/Modules/_multiprocessing/semaphore.c
@@ -114,6 +114,9 @@
assert(sigint_event != NULL);
handles[nhandles++] = sigint_event;
}
+ else {
+ sigint_event = NULL;
+ }
/* do the wait */
Py_BEGIN_ALLOW_THREADS
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list