summaryrefslogtreecommitdiffstats
path: root/PCbuild
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-08-17 10:29:58 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-08-17 10:29:58 (GMT)
commit7e6977a8bc5c5209d22241933b6a1d5116de4121 (patch)
treee24db2902618278444f7934f4e335d80eee213bc /PCbuild
parent6423429325f4f2309892f530417bc9737268be38 (diff)
downloadcpython-7e6977a8bc5c5209d22241933b6a1d5116de4121.zip
cpython-7e6977a8bc5c5209d22241933b6a1d5116de4121.tar.gz
cpython-7e6977a8bc5c5209d22241933b6a1d5116de4121.tar.bz2
script_helper: kill the subprocess on error
If Popen.communicate() raises an exception, kill the child process to not leave a running child process in background and maybe create a zombi process. This change fixes a ResourceWarning in Python 3.6 when unit tests are interrupted by CTRL+c.
Diffstat (limited to 'PCbuild')
0 files changed, 0 insertions, 0 deletions