Eryk Sun added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29345>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to