diff options
author | Charles-François Natali <neologix@free.fr> | 2012-02-08 20:15:58 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2012-02-08 20:15:58 (GMT) |
commit | ed4a8fc0952a4211bc8bc929c23e11bebdfe9aa3 (patch) | |
tree | 5ef3babaa18c5b4e56847c3a556dd7cad4bb0ce0 /Modules | |
parent | 1aa54a417d767efb2ebb4c1a31e69f7be9b1d6ae (diff) | |
download | cpython-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')
-rw-r--r-- | Modules/_multiprocessing/win32_functions.c | 1 |
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); |