Message255866
Patch 2 additionally modifies run_child to call exit() instead of ExitProcess. For example:
>>> import os, subprocess
>>> os.environ['PYLAUNCH_DEBUG'] = '1'
>>> p = subprocess.Popen(r'py -3 -c ""', stderr=subprocess.PIPE, stdout=subprocess.PIPE)
>>> p.stderr.read()
b''
Patched:
>>> p = subprocess.Popen(r'amd64\py_d -3 -c ""', stderr=subprocess.PIPE, stdout=subprocess.PIPE)
>>> p.stderr.readlines()[-1]
b'child process exit code: 0\r\n'
For good measure I also added a call to setvbuf to disable buffering stderr. |
|
Date |
User |
Action |
Args |
2015-12-04 15:30:22 | eryksun | set | recipients:
+ eryksun, paul.moore, vinay.sajip, tim.golden, zach.ware, steve.dower, wolma |
2015-12-04 15:30:22 | eryksun | set | messageid: <1449243022.16.0.276445235864.issue25789@psf.upfronthosting.co.za> |
2015-12-04 15:30:22 | eryksun | link | issue25789 messages |
2015-12-04 15:30:21 | eryksun | create | |
|