Posted Aug 28, 2009 3:54 UTC (Fri) by kjp (subscriber, #39639)
In reply to: nostd in userspace? by quotemstr
Parent article: In brief
What about libraries that use fopen() anywhere? There is no way for them to set CLOEXEC race free..or even pass NOSTD for that matter. The people who thought these hacks up didn't think it through. If you use open(2) you should be able to realize you don't need these hacks.
Posted Aug 28, 2009 4:05 UTC (Fri) by quotemstr (subscriber, #45331)
[Link]
Your argument is spot-on. That's why I proposed, way back when, that O_CLOEXEC be a thread flag. I'm glad to see that people finally realize I was right.