• 1
fopen(path, "rc") --> fopen(path, "re")

Most current software actually need O_CLOEXEC as default behaviour, unfortunately there is no "magic" -D_FORCE_OCLOEXEC ( like FORTIFY_SOURCE) or a compiler flag -fcloexec .. that would make the task for distributions so much easier...

Fixed fopen() call in the original, thanks.

Opened a bug on gcc, to see what they think of your suggestion. I like it.


But not sure about STDIN,STDOUT,STDERR.

  • 1

Log in