From 00e934c983839dbd191079f806ca83bf5e2c5d0c Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Sat, 15 Aug 2020 12:40:10 -0400 Subject: fix ioctl number --- src/termios/tcgetsid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/termios/tcgetsid.c b/src/termios/tcgetsid.c index 2ebfb425..aa6c44de 100644 --- a/src/termios/tcgetsid.c +++ b/src/termios/tcgetsid.c @@ -4,7 +4,7 @@ pid_t tcgetsid(int fildes) { pid_t pid = -1; - if (ioctl(fildes, TIOCGPGRP, &pid) == -1) { + if (ioctl(fildes, TIOCGSID, &pid) == -1) { return (pid_t)-1; } return pid; -- cgit v1.2.1