summaryrefslogtreecommitdiffstats
path: root/Modules/_multiprocessing
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-02-08 20:15:58 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-02-08 20:15:58 (GMT)
commited4a8fc0952a4211bc8bc929c23e11bebdfe9aa3 (patch)
tree5ef3babaa18c5b4e56847c3a556dd7cad4bb0ce0 /Modules/_multiprocessing
parent1aa54a417d767efb2ebb4c1a31e69f7be9b1d6ae (diff)
downloadcpython-ed4a8fc0952a4211bc8bc929c23e11bebdfe9aa3.zip
cpython-ed4a8fc0952a4211bc8bc929c23e11bebdfe9aa3.tar.gz
cpython-ed4a8fc0952a4211bc8bc929c23e11bebdfe9aa3.tar.bz2
Issue #8184: multiprocessing: On Windows, don't set SO_REUSEADDR on Connection
sockets, and set FILE_FLAG_FIRST_PIPE_INSTANCE on named pipes, to make sure two listeners can't bind to the same socket/pipe (or any existing socket/pipe).
Diffstat (limited to 'Modules/_multiprocessing')
-rw-r--r--Modules/_multiprocessing/win32_functions.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_multiprocessing/win32_functions.c b/Modules/_multiprocessing/win32_functions.c
index ddc496d..e175997 100644
--- a/Modules/_multiprocessing/win32_functions.c
+++ b/Modules/_multiprocessing/win32_functions.c
@@ -784,6 +784,7 @@ create_win32_namespace(void)
WIN32_CONSTANT(F_DWORD, ERROR_PIPE_BUSY);
WIN32_CONSTANT(F_DWORD, ERROR_PIPE_CONNECTED);
WIN32_CONSTANT(F_DWORD, ERROR_SEM_TIMEOUT);
+ WIN32_CONSTANT(F_DWORD, FILE_FLAG_FIRST_PIPE_INSTANCE);
WIN32_CONSTANT(F_DWORD, FILE_FLAG_OVERLAPPED);
WIN32_CONSTANT(F_DWORD, GENERIC_READ);
WIN32_CONSTANT(F_DWORD, GENERIC_WRITE);