ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Pali Rohár 2021-08-30 18:08:57 +02:00 committed by Michael Kerrisk
parent daa754a4d6
commit 44803dd03b
1 changed files with 3 additions and 0 deletions

View File

@ -386,6 +386,9 @@ Set the foreground process group ID of this terminal.
Argument:
.BI "pid_t *" argp
.IP
When successful, equivalent to
.IR "*argp = tcgetsid(fd)" .
.IP
Get the session ID of the given terminal.
This fails with the error
.B ENOTTY