]> granicus.if.org Git - python/commit
bpo-31804: Fix multiprocessing.Process with broken standard streams (#6079)
authorAntoine Pitrou <pitrou@free.fr>
Sun, 11 Mar 2018 18:21:38 +0000 (19:21 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Mar 2018 18:21:38 +0000 (19:21 +0100)
commite756f66c83786ee82f5f7d45931ae50a6931dd7f
treef3d6b9bd7d6319fc3149841bb7498e326d9fe7c9
parent9fb84157595a385f15799e5d0729c1e1b0ba9d38
bpo-31804: Fix multiprocessing.Process with broken standard streams (#6079)

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