diff options
author | Richard Oudkerk <shibturn@gmail.com> | 2013-08-22 10:38:57 (GMT) |
---|---|---|
committer | Richard Oudkerk <shibturn@gmail.com> | 2013-08-22 10:38:57 (GMT) |
commit | 7d2d43c0b15b8062c9b5d672a78e653abe2e1d91 (patch) | |
tree | abc0049e1078fafc3c66f0463b8e9f70e2004d0e /Lib/multiprocessing/popen_spawn_win32.py | |
parent | 0718f70131e4bc3756f453eb2f0c9ef8ed2fa843 (diff) | |
download | cpython-7d2d43c0b15b8062c9b5d672a78e653abe2e1d91.zip cpython-7d2d43c0b15b8062c9b5d672a78e653abe2e1d91.tar.gz cpython-7d2d43c0b15b8062c9b5d672a78e653abe2e1d91.tar.bz2 |
Stop making fork server have copy of semaphore_tracker_fd.
Diffstat (limited to 'Lib/multiprocessing/popen_spawn_win32.py')
-rw-r--r-- | Lib/multiprocessing/popen_spawn_win32.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/multiprocessing/popen_spawn_win32.py b/Lib/multiprocessing/popen_spawn_win32.py index 7e0c4b3..f1e9aae 100644 --- a/Lib/multiprocessing/popen_spawn_win32.py +++ b/Lib/multiprocessing/popen_spawn_win32.py @@ -32,13 +32,14 @@ class Popen(object): def __init__(self, process_obj): prep_data = spawn.get_preparation_data(process_obj._name) - cmd = ' '.join('"%s"' % x for x in spawn.get_command_line()) # read end of pipe will be "stolen" by the child process # -- see spawn_main() in spawn.py. rhandle, whandle = _winapi.CreatePipe(None, 0) wfd = msvcrt.open_osfhandle(whandle, 0) - cmd += ' {} {}'.format(os.getpid(), rhandle) + cmd = spawn.get_command_line(parent_pid=os.getpid(), + pipe_handle=rhandle) + cmd = ' '.join('"%s"' % x for x in cmd) with open(wfd, 'wb', closefd=True) as to_child: # start process |