mirror of https://github.com/mkerrisk/man-pages
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:
parent
daa754a4d6
commit
44803dd03b
|
@ -386,6 +386,9 @@ Set the foreground process group ID of this terminal.
|
||||||
Argument:
|
Argument:
|
||||||
.BI "pid_t *" argp
|
.BI "pid_t *" argp
|
||||||
.IP
|
.IP
|
||||||
|
When successful, equivalent to
|
||||||
|
.IR "*argp = tcgetsid(fd)" .
|
||||||
|
.IP
|
||||||
Get the session ID of the given terminal.
|
Get the session ID of the given terminal.
|
||||||
This fails with the error
|
This fails with the error
|
||||||
.B ENOTTY
|
.B ENOTTY
|
||||||
|
|
Loading…
Reference in New Issue