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 neologix
Recipients filip.zyzniewski, neologix
Date 2012-12-07.13:52:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1354888371.6.0.0313714756398.issue16635@psf.upfronthosting.co.za>
In-reply-to
Content
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...
History
Date User Action Args
2012-12-07 13:52:51neologixsetrecipients: + neologix, filip.zyzniewski
2012-12-07 13:52:51neologixsetmessageid: <1354888371.6.0.0313714756398.issue16635@psf.upfronthosting.co.za>
2012-12-07 13:52:51neologixlinkissue16635 messages
2012-12-07 13:52:51neologixcreate