More fun with file descriptors
Posted Jun 15, 2007 1:44 UTC (Fri) by
mikov (subscriber, #33179)
Parent article:
More fun with file descriptors
Sorry if this is a stupid question, but why not do something like this:
osflags_t old_flags = set_flags_for_current_thread( PR_SPARSEFD );
...
x = socket(..);
...
set_flags_for_current_thread( old_flags );
(
Log in to post comments)