X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/1359531910eef196bf224609fc7802879c4b9418..9eebc521640fcc2682c4554ae33ac10e1a460e0c:/usr/src/libexec/telnetd/telnetd.c diff --git a/usr/src/libexec/telnetd/telnetd.c b/usr/src/libexec/telnetd/telnetd.c index 27d7cd97f8..085ab589db 100644 --- a/usr/src/libexec/telnetd/telnetd.c +++ b/usr/src/libexec/telnetd/telnetd.c @@ -11,7 +11,7 @@ char copyright[] = #endif not lint #ifndef lint -static char sccsid[] = "@(#)telnetd.c 5.20 (Berkeley) %G%"; +static char sccsid[] = "@(#)telnetd.c 5.21 (Berkeley) %G%"; #endif not lint /* @@ -386,6 +386,11 @@ telnet(f, p) setsockopt(net, SOL_SOCKET, SO_OOBINLINE, &on, sizeof on); #endif /* defined(SO_OOBINLINE) */ signal(SIGTSTP, SIG_IGN); + /* + * Ignoring SIGTTOU keeps the kernel from blocking us + * in ttioctl() in /sys/tty.c. + */ + signal(SIGTTOU, SIG_IGN); signal(SIGCHLD, cleanup); setpgrp(0, 0);