📜  fd_cloexec - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:25.600000             🧑  作者: Mango

代码示例1
It marks the file descriptor so that it will be close()d automatically 
when the process or any children it fork()s calls one of the 
exec*() family of functions. This is useful to keep from leaking
your file descriptors to random programs run by e.g. system().