From: Pali Rohár Date: Mon, 30 Aug 2021 16:08:57 +0000 (+0200) Subject: ioctl_tty.2: TIOCGSID is equivalent to tcgetsid() X-Git-Tag: man-pages-5.19-rc1~907 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44803dd03baedd42efdac38d49d1ba90f79c2f5d;p=thirdparty%2Fman-pages.git ioctl_tty.2: TIOCGSID is equivalent to tcgetsid() Signed-off-by: Pali Rohár Signed-off-by: Michael Kerrisk --- diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2 index ac46725d22..186011ee7c 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