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