summaryrefslogtreecommitdiff
path: root/usr.bin/lock/lock.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-05-08 18:04:44 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-05-08 18:04:44 +0000
commita503fc5111ad05c7d7943834f0be998a48ae2c9d (patch)
tree81c4d9719e55e7ab615ac8ffe5125486ed3005e5 /usr.bin/lock/lock.c
parentea24ee2e06f3619bba6c5c2c3ba5a3ececea2cfe (diff)
_exit() not exit() in signal handler.
Diffstat (limited to 'usr.bin/lock/lock.c')
-rw-r--r--usr.bin/lock/lock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/lock/lock.c b/usr.bin/lock/lock.c
index f226cc96a79..8286d42a054 100644
--- a/usr.bin/lock/lock.c
+++ b/usr.bin/lock/lock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lock.c,v 1.15 2002/02/16 21:27:48 millert Exp $ */
+/* $OpenBSD: lock.c,v 1.16 2002/05/08 18:04:43 millert Exp $ */
/* $NetBSD: lock.c,v 1.8 1996/05/07 18:32:31 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)lock.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: lock.c,v 1.15 2002/02/16 21:27:48 millert Exp $";
+static char rcsid[] = "$OpenBSD: lock.c,v 1.16 2002/05/08 18:04:43 millert Exp $";
#endif /* not lint */
/*
@@ -244,5 +244,6 @@ bye(dummy)
{
if (!no_timeout)
- errx(1, "timeout");
+ warnx("timeout");
+ _exit(1);
}