[issue5313] multiprocessing.process using os.close(sys.stdin.fileno) instead of sys.stdin.close()

Jesse Noller report at bugs.python.org
Fri Jun 19 17:14:57 CEST 2009


Jesse Noller <jnoller at gmail.com> added the comment:

Attached is a patch which calls close() first, and then attempts to close 
the fd. In the case of an attribute errors (fileno doesn't exist) we 
simply set it to devnull. 

This is just a thought, feedback welcome - right now this allows this 
fixes issue 5155 and 5331 (and this issue)

----------
keywords: +patch
Added file: http://bugs.python.org/file14319/stdin-patchv1.patch

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


More information about the Python-bugs-list mailing list