]> granicus.if.org Git - python/commit
[3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079...
authorAntoine Pitrou <pitrou@free.fr>
Sun, 11 Mar 2018 19:09:20 +0000 (20:09 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Mar 2018 19:09:20 +0000 (20:09 +0100)
commit069b8d20be8018fbd49ed5aaf64c4caba311e48f
tree7b6d73f84bde5b2ce5fecd0d3ae4e8edcd075ba3
parent20ac11a9fb027f183914bbaaaed091b57c882e54
[3.6] bpo-31804: Fix multiprocessing.Process with broken standard streams (GH-6079) (GH-6081)

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)
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]