From 44803dd03baedd42efdac38d49d1ba90f79c2f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pali=20Roh=C3=A1r?= Date: Mon, 30 Aug 2021 18:08:57 +0200 Subject: [PATCH] ioctl_tty.2: TIOCGSID is equivalent to tcgetsid() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pali Rohár Signed-off-by: Michael Kerrisk --- man2/ioctl_tty.2 | 3 +++ 1 file changed, 3 insertions(+) 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