User: Password:
|
|
Subscribe / Log in / New account

More fun with file descriptors

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)


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds