Charles-François Natali added the comment:

stdout and stderr are not closed, because in 99.9999% of cases it's useless: 
they are closed upon the program exit.
Also, imagine what would happend if an error occured after closing them, we 
would be unable to log it.

If you want to avoid this kind of problem, you should call:
"""
os.fsync(1)
os.fsync(2)
"""

when you're done.

Note that you'll have the same problem with shell scripts and any other 
executable...

----------
nosy: +neologix

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

Reply via email to