mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
gh-98552: flush std streams in the multiprocessing forkserver before fork (#141849)
* flush std streams in the multiprocessing forkserver before fork * NEWS
This commit is contained in:
parent
08477dbf30
commit
58badb1711
2 changed files with 5 additions and 0 deletions
|
|
@ -326,6 +326,7 @@ def sigchld_handler(*_unused):
|
|||
len(fds)))
|
||||
child_r, child_w, *fds = fds
|
||||
s.close()
|
||||
util._flush_std_streams()
|
||||
pid = os.fork()
|
||||
if pid == 0:
|
||||
# Child
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue