]> granicus.if.org Git - python/commit
bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 11 Mar 2018 18:42:37 +0000 (11:42 -0700)
committerAntoine Pitrou <pitrou@free.fr>
Sun, 11 Mar 2018 18:42:37 +0000 (19:42 +0100)
commitff5d21331ec6cefec6ba5b78d256d8dbcd67a069
treed4a2a35b1b17721171f87c3b5977246c5cb7173e
parent04aadf23eac51fec2e436c5960c1362bbb7d03de
bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079) (GH-6080)

In some conditions the standard streams will be None or closed in the child process (for example if using "pythonw" instead of "python" on Windows).  Avoid failing with a non-0 exit code in those conditions.

Report and initial patch by poxthegreat.
(cherry picked from commit e756f66c83786ee82f5f7d45931ae50a6931dd7f)

Co-authored-by: Antoine Pitrou <pitrou@free.fr>
Lib/multiprocessing/popen_fork.py
Lib/multiprocessing/process.py
Lib/multiprocessing/util.py
Lib/test/_test_multiprocessing.py
Misc/NEWS.d/next/Library/2018-03-11-19-03-52.bpo-31804.i8KUMp.rst [new file with mode: 0644]