gh-98552: Revert (unneeded, already done elsewhere) "flush std streams in the multiprocessing forkserver before fork (#141849)" (#141871)

Revert (unneeded, already done elsewhere) "gh-98552: flush std streams in the multiprocessing forkserver before fork (#141849)"

This reverts commit 58badb1711.
This commit is contained in:
Gregory P. Smith 2025-11-23 01:52:26 -08:00 committed by GitHub
parent 2746c698e3
commit 614a28b3da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 5 deletions

View file

@ -326,7 +326,6 @@ 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

View file

@ -1,4 +0,0 @@
The :mod:`multiprocessing` forkserver process now flushes stdout and stderr
before it forks to avoid the confusion children inheriting any buffered but
not yet written output data. Normally there is none, but when using
:func:`multiprocessing.set_forkserver_preload` there *could* be.