This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients eryksun, paul.moore, steve.dower, tim.golden, vinay.sajip, wolma, zach.ware
Date 2015-12-04.15:30:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449243022.16.0.276445235864.issue25789@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-12-04 15:30:22eryksunsetrecipients: + eryksun, paul.moore, vinay.sajip, tim.golden, zach.ware, steve.dower, wolma
2015-12-04 15:30:22eryksunsetmessageid: <1449243022.16.0.276445235864.issue25789@psf.upfronthosting.co.za>
2015-12-04 15:30:22eryksunlinkissue25789 messages
2015-12-04 15:30:21eryksuncreate