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

Bernt Røskar Brenna report at bugs.python.org
Thu Nov 14 14:09:53 CET 2013


Bernt Røskar Brenna added the comment:

Another script, another test case.

Four different tasks are run:

subprocess_redirfile: Popen(stdout=file)
subprocess_devnull: Popen(stdout=DEVNULL)
subprocess_noredirect: Popen()
nosubprocess: No Popen() call

Judging from the output it looks as if it is the redirection that triggers this behavior.

Here's the output from my Win XP computer:

Platform: Windows-XP-5.1.2600-SP3

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

----------
Added file: http://bugs.python.org/file32613/testcase3.py

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


More information about the Python-bugs-list mailing list