From 27a8c94d98aa165d95ea5adbb3c0f13328b457f5 Mon Sep 17 00:00:00 2001 From: kstailey Date: Wed, 3 Sep 1997 18:01:02 +0000 Subject: Brain damage on theo's part. --- usr.bin/rlogin/rlogin.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c index 27d82ccbe50..c415ecc098f 100644 --- a/usr.bin/rlogin/rlogin.c +++ b/usr.bin/rlogin/rlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlogin.c,v 1.17 1997/08/31 18:00:43 deraadt Exp $ */ +/* $OpenBSD: rlogin.c,v 1.18 1997/09/03 18:01:01 kstailey 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.17 1997/08/31 18:00:43 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rlogin.c,v 1.18 1997/09/03 18:01:01 kstailey Exp $"; #endif #endif /* not lint */ @@ -380,6 +380,10 @@ doit(omask) } sleep(1); + msg("\aconnection closed."); + exit(1); + } + /* * Use sigaction() instead of signal() to avoid getting SIGCHLDs * for stopped children. @@ -389,10 +393,6 @@ doit(omask) sa.sa_handler = catch_child; (void)sigaction(SIGCHLD, &sa, NULL); - msg("\aconnection closed."); - exit(1); - } - /* * We may still own the socket, and may have a pending SIGURG (or might * receive one soon) that we really want to send to the reader. When -- cgit v1.2.3