diff --git a/Lib/multiprocessing/forkserver.py b/Lib/multiprocessing/forkserver.py index 8a4e8d835b0c91..cc8947c5e04fb1 100644 --- a/Lib/multiprocessing/forkserver.py +++ b/Lib/multiprocessing/forkserver.py @@ -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 diff --git a/Misc/NEWS.d/next/Library/2025-11-22-18-00-38.gh-issue-98552.d5KNy-.rst b/Misc/NEWS.d/next/Library/2025-11-22-18-00-38.gh-issue-98552.d5KNy-.rst deleted file mode 100644 index 37a71ac1fff3f3..00000000000000 --- a/Misc/NEWS.d/next/Library/2025-11-22-18-00-38.gh-issue-98552.d5KNy-.rst +++ /dev/null @@ -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.