Set the process group ID of a controlling terminal's session leader
#include <sys/dcmd_chr.h> #define DCMD_CHR_TCSETSID __DIOT(_DCMD_CHR, 8, pid_t)
| Argument | Value |
|---|---|
| filedes | A file descriptor that you obtained by opening the device. |
| dcmd | DCMD_CHR_TCSETSID |
| dev_data_ptr | A pointer to a pid_t |
| n_bytes | sizeof(pid_t) |
| dev_info_ptr | NULL |
This command sets the process group ID of the session leader for a controlling terminal.
The process group ID.
None.