LWN.net Logo

File descriptor handling changes in 2.6.27

File descriptor handling changes in 2.6.27

Posted Mar 2, 2011 19:25 UTC (Wed) by gps (subscriber, #45638)
In reply to: File descriptor handling changes in 2.6.27 by quotemstr
Parent article: File descriptor handling changes in 2.6.27

But closefrom() does need to be async-signal-safe so that it can safely be called after a fork().

Sadly it does not look like the Solaris implementation http://www.unix.com/man-page/All/3c/closefrom/ is safe which makes me wonder what the point of implementing it at all was...


(Log in to post comments)

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