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 neologix, s7v7nislands
Date 2011-02-22.09:49:11
SpamBayes Score 0.000536156
Marked as misclassified No
Message-id <>
dup(2) returns the lowest numbered available file descriptor: if there's a discontinuity in the FDs allocation, this code is going to close only the FDs up to the first available FD.
Imagine for example the following:
open("/tmp/foo") = 3
open("/tmp/bar") = 4

Then dup(0) will return 3, and not the max FD.
Date User Action Args
2011-02-22 09:49:12neologixsetrecipients: + neologix, s7v7nislands
2011-02-22 09:49:12neologixsetmessageid: <>
2011-02-22 09:49:12neologixlinkissue11284 messages
2011-02-22 09:49:12neologixcreate