summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-09-03 18:01:02 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-09-03 18:01:02 +0000
commit27a8c94d98aa165d95ea5adbb3c0f13328b457f5 (patch)
tree7c1bd0a752743a8a808be1f3044c490138185d35
parenta282ad628b5b92ded349f32ccc2b75e7bec25ec6 (diff)
Brain damage on theo's part.
-rw-r--r--usr.bin/rlogin/rlogin.c12
1 files 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