diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-05 18:53:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-09-05 18:53:27 +0000 |
commit | 8f8a467cc34ac03db95eacf7a47a43ca7a9f0db6 (patch) | |
tree | 82591f7ec2ac1450d97fc12abf25295b31f22764 | |
parent | 63575291146008497a9d46853cf1437c1d6d29fb (diff) |
Add SIGPIPE to the list of signals we catch and unlock/exit on.
-rw-r--r-- | libexec/lockspool/lockspool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/lockspool/lockspool.c b/libexec/lockspool/lockspool.c index 3ff3a995744..dc0e0d162fd 100644 --- a/libexec/lockspool/lockspool.c +++ b/libexec/lockspool/lockspool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lockspool.c,v 1.5 2001/09/04 22:19:23 millert Exp $ */ +/* $OpenBSD: lockspool.c,v 1.6 2001/09/05 18:53:26 millert Exp $ */ /* * Copyright (c) 1998 Theo de Raadt <deraadt@theos.com> @@ -29,7 +29,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: lockspool.c,v 1.5 2001/09/04 22:19:23 millert Exp $"; +static const char rcsid[] = "$OpenBSD: lockspool.c,v 1.6 2001/09/05 18:53:26 millert Exp $"; #endif /* not lint */ #include <sys/signal.h> @@ -64,6 +64,7 @@ main(argc, argv) signal(SIGTERM, unhold); signal(SIGINT, unhold); signal(SIGHUP, unhold); + signal(SIGPIPE, unhold); if (argc == 2) from = argv[1]; |