Old and well-known
Posted Aug 27, 2009 14:18 UTC (Thu) by dwheeler
In reply to: O_NOSTD
Parent article: In brief
The issue this patch is trying to address is noted in "Secure Programming for Linux and Unix HOWTO", section 5.3 (File Descriptors):
"[do] not assume that standard input (stdin), standard output (stdout), and standard error (stderr) refer to a terminal or are even open."
I don't know if this is the best way to go about it, but I applaud the idea of trying to make it easier to write correct software.
to post comments)