Set close on exec on a file descriptor
#include <sys/ioctl.h> #define FIOCLEX _IO('f', 1)
Argument | Value |
---|---|
fd | A file descriptor that you obtained by opening the device |
request | FIOCLEX |
This command sets the close on exec flag on a file descriptor. It's implemented as a call to fcntl() with a command of F_SETFD and an additional argument of FD_CLOEXEC.
None.
None.