Posted Aug 27, 2009 18:09 UTC (Thu) by foom (subscriber, #14868)
In reply to: O_NOSTD by daney
Parent article: In brief
> For a multi-threaded program, O_CLOEXEC is required if you want race free operation.
> Hardly pointless.
No, it's not required. After a fork, your program is no longer multi-threaded, and you can at your
leisure close all file descriptors except those necessary for program you're about to exec, with no