summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-09-03 18:01:01 +0000
committerkstailey <kstailey@openbsd.org>1997-09-03 18:01:01 +0000
commitb7d35f09d0ba56137b84568eac80df824f6ad4bb (patch)
treef77c72e78a1d5f7401d92c741674f49559a98ea4
parentsimplify verbose error reporting (diff)
downloadwireguard-openbsd-b7d35f09d0ba56137b84568eac80df824f6ad4bb.tar.xz
wireguard-openbsd-b7d35f09d0ba56137b84568eac80df824f6ad4bb.zip
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