How do you prevent a file descriptor from being copy-inherited across fork() system calls (without closing it, of course)?
fork()
I am looking for a way to mar
No. Close them yourself, since you know which ones need to be closed.