Mark a file descriptor non-inheritable
#include <io.h>
void io_closeonexec(int64 fd);
io_closeonexec marks a file descriptor non-inheritable. It will be automatically closed if the process executes a different one. The descriptor will not be automatically closed when you fork() a new child process, though.