summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali@kernel.org>2021-08-30 18:08:57 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-08-30 23:15:14 +0200
commit44803dd03baedd42efdac38d49d1ba90f79c2f5d (patch)
tree7f4018696f95445cd252f41c76cce67d2b065ef6
parentdaa754a4d60ad53f6e0511fe3d09e34b57b34940 (diff)
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>
-rw-r--r--man2/ioctl_tty.23
1 files changed, 3 insertions, 0 deletions
diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2
index ac46725d2..186011ee7 100644
--- a/man2/ioctl_tty.2
+++ b/man2/ioctl_tty.2
@@ -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