diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-02 01:14:56 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-10-02 01:14:56 +0000 |
commit | d85a5b18599d526b9188edc91a44beaef5b2db9d (patch) | |
tree | 1971f20f5482c7308d6e7fafa302991c15547b76 | |
parent | 394460fedf1c2f99c7dd2b979c717946c78845e0 (diff) |
Be a bit more careful when sending signals to the parent.
Don't send SIGUSR1 to init.
-rw-r--r-- | usr.bin/rlogin/rlogin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c index 56681a920ca..038e660b1fc 100644 --- a/usr.bin/rlogin/rlogin.c +++ b/usr.bin/rlogin/rlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlogin.c,v 1.24 2001/09/04 23:35:59 millert Exp $ */ +/* $OpenBSD: rlogin.c,v 1.25 2001/10/02 01:14:55 art Exp $ */ /* $NetBSD: rlogin.c,v 1.8 1995/10/05 09:07:22 mycroft Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rlogin.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: rlogin.c,v 1.24 2001/09/04 23:35:59 millert Exp $"; +static char rcsid[] = "$OpenBSD: rlogin.c,v 1.25 2001/10/02 01:14:55 art Exp $"; #endif #endif /* not lint */ @@ -712,7 +712,7 @@ oob(signo) return; } } - if (mark & TIOCPKT_WINDOW) { + if (mark & TIOCPKT_WINDOW && ppid > 1) { /* Let server know about window size changes */ (void)kill(ppid, SIGUSR1); } |