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 grahamd
Recipients grahamd, jnoller
Date 2009-02-19.05:21:09
SpamBayes Score 1.40425e-05
Marked as misclassified No
Message-id <1235020872.08.0.0158488308351.issue5313@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2009-02-19 05:21:12grahamdsetrecipients: + grahamd, jnoller
2009-02-19 05:21:12grahamdsetmessageid: <1235020872.08.0.0158488308351.issue5313@psf.upfronthosting.co.za>
2009-02-19 05:21:10grahamdlinkissue5313 messages
2009-02-19 05:21:09grahamdcreate