]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
ioctl_tty.2: TIOCGSID is equivalent to tcgetsid()
authorPali Rohár <pali@kernel.org>
Mon, 30 Aug 2021 16:08:57 +0000 (18:08 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 30 Aug 2021 21:15:14 +0000 (23:15 +0200)
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/ioctl_tty.2

index ac46725d2268bb6426a3390650e1e91ab93b0b7c..186011ee7c334d6f382f66fc00e705749cde1d9e 100644 (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