Message129045
| Author |
neologix |
| Recipients |
neologix, s7v7nislands |
| Date |
2011年02月22日.09:49:11 |
| SpamBayes Score |
0.000536156 |
| Marked as misclassified |
No |
| Message-id |
<1298368152.67.0.464153509624.issue11284@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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
close(3)
Then dup(0) will return 3, and not the max FD. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年02月22日 09:49:12 | neologix | set | recipients:
+ neologix, s7v7nislands |
| 2011年02月22日 09:49:12 | neologix | set | messageid: <1298368152.67.0.464153509624.issue11284@psf.upfronthosting.co.za> |
| 2011年02月22日 09:49:12 | neologix | link | issue11284 messages |
| 2011年02月22日 09:49:12 | neologix | create |
|