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