Clear "close on exec" on a file descriptor
#include <sys/ioctl.h>
#define FIONCLEX _IO('f', 2)
| Argument | Value |
|---|---|
| fd | A file descriptor that you obtained by opening the device |
| request | FIONCLEX |
This command clears 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.