New submission from Graham Dumpleton <[email protected]>:
In multiprocessing.process it contains the code:
def _bootstrap(self):
....
if sys.stdin is not None:
try:
os.close(sys.stdin.fileno())
except (OSError, ValueError):
pass
This code should probably be calling sys.stdin.close() and not
os.close(sys.stdin.fileno()).
The code as is will fail if sys.stdin had been replaced with an alternate
file like object, such as StringIO, which doesn't have a fileno() method.
----------
messages: 82457
nosy: grahamd, jnoller
severity: normal
status: open
title: multiprocessing.process using os.close(sys.stdin.fileno) instead of
sys.stdin.close()
versions: Python 2.6, Python 3.0
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue5313>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com