We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a705c1e commit 0a55415Copy full SHA for 0a55415
1 file changed
Lib/multiprocessing/popen_spawn_posix.py
@@ -57,6 +57,10 @@ def _launch(self, process_obj):
57
self._fds.extend([child_r, child_w])
58
self.pid = util.spawnv_passfds(spawn.get_executable(),
59
cmd, self._fds)
60
+ os.close(child_r)
61
+ child_r = None
62
+ os.close(child_w)
63
+ child_w = None
64
self.sentinel = parent_r
65
with open(parent_w, 'wb', closefd=False) as f:
66
f.write(fp.getbuffer())
0 commit comments