[issue19575] subprocess.Popen with multiple threads: Redirected stdout/stderr files still open after process close

Bernt Røskar Brenna report at bugs.python.org
Mon Nov 18 10:30:54 CET 2013


Bernt Røskar Brenna added the comment:

I just tested on 3.4a0.

Observed the following changes: 

- subprocess_devnull now NEVER fails.
- subprocess_redirfile does not fail as often as before, but still fails.

I changed the number of tasks to 20 and increased max_workers to 5 to get subprocess_redirfile to fail at least one of twenty times every time I invoked the test script.

A typical result on 3.4 looks like this:

Platform: Windows-XP-5.1.2600-SP3

task_type                 #threads   result
subprocess_redirfile      5          3 errors
subprocess_redirfile      1          OK
subprocess_devnull        5          OK
subprocess_devnull        1          OK
subprocess_noredirect     5          OK
subprocess_noredirect     1          OK
nosubprocess              5          OK
nosubprocess              1          OK

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19575>
_______________________________________


More information about the Python-bugs-list mailing list