Signed-off-by: Pali Rohár <pali@xxxxxxxxxx> --- man2/ioctl_tty.2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/man2/ioctl_tty.2 b/man2/ioctl_tty.2 index c7a8aad7b395..6ba18f337e8f 100644 --- a/man2/ioctl_tty.2 +++ b/man2/ioctl_tty.2 @@ -401,6 +401,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 -- 2.20.1