Skip to content

Commit 77f6c4e

Browse files
committed
flush std streams in the multiprocessing forkserver before fork
1 parent c41fce0 commit 77f6c4e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/multiprocessing/forkserver.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ def sigchld_handler(*_unused):
326326
len(fds)))
327327
child_r, child_w, *fds = fds
328328
s.close()
329+
util._flush_std_streams()
329330
pid = os.fork()
330331
if pid == 0:
331332
# Child

0 commit comments

Comments
 (0)