Make a terminal not be the controlling terminal
#include <sys/ioctl.h>
#define TIOCNOTTY _IO('t', 113)
| Argument | Value |
|---|---|
| fd | A file descriptor that you obtained by opening the device |
| request | TIOCNOTTY |
This command calls tcsetsid() to make the terminal not be the controlling terminal for the process.
None.
None.