My process forks several times, and each time the child will exec - means I want it to run some other program.
In the main process I open a file descriptor with the open()
syscall.
Would it be correct to give it a flag O_CLOEXEC
so the new program that I run with exec()
wouldn't have the fd resource?