mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
[3.13] gh-98552: flush std streams in the multiprocessing forkserver before fork (GH-141849) (#141852)
gh-98552: flush std streams in the multiprocessing forkserver before fork (GH-141849)
* flush std streams in the multiprocessing forkserver before fork
* NEWS
(cherry picked from commit 58badb1711)
Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
This commit is contained in:
parent
66576c2be8
commit
60c02ff714
2 changed files with 5 additions and 0 deletions
|
|
@ -270,6 +270,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