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 Just a Person, davin, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2017-01-22.17:58:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485107903.45.0.742397244562.issue29345@psf.upfronthosting.co.za>
In-reply-to
Content
>    if p.exitcode != 0:
>        print('Child failed with exit code:', p.exitcode)

Interestingly the exit code is always 1 when running under pythonw.exe. I just inspected what's going on by setting sys.stderr to a file and discovered the following issue:

      File "C:\Program Files\Python35\lib\multiprocessing\process.py", line 268, in _bootstrap
        sys.stdout.flush()
    AttributeError: 'NoneType' object has no attribute 'flush'

Calling flush() on stderr and stdout should be gated by a check that they're not None and have a flush method. Or simply ignore the AttributeError.
History
Date User Action Args
2017-01-22 17:58:23eryksunsetrecipients: + eryksun, paul.moore, tim.golden, zach.ware, steve.dower, davin, Just a Person
2017-01-22 17:58:23eryksunsetmessageid: <1485107903.45.0.742397244562.issue29345@psf.upfronthosting.co.za>
2017-01-22 17:58:23eryksunlinkissue29345 messages
2017-01-22 17:58:23eryksuncreate