summaryrefslogtreecommitdiff
path: root/games/sail
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-01-07 03:44:31 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-01-07 03:44:31 +0000
commit6b3d90cecd5cb04f150acca617c1c33226b12276 (patch)
tree16aa8724c8bd4ca55ac59626c0cb210a856e3646 /games/sail
parent39f4970a8c9957c46c9fa9fd855bbda8ecb697c7 (diff)
To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGN
which now has a different meaning.
Diffstat (limited to 'games/sail')
-rw-r--r--games/sail/pl_1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/games/sail/pl_1.c b/games/sail/pl_1.c
index b8959e2192b..10c63c49fe6 100644
--- a/games/sail/pl_1.c
+++ b/games/sail/pl_1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pl_1.c,v 1.5 1999/01/18 21:53:22 pjanzen Exp $ */
+/* $OpenBSD: pl_1.c,v 1.6 2002/01/07 03:44:29 millert Exp $ */
/* $NetBSD: pl_1.c,v 1.3 1995/04/22 10:37:07 cgd Exp $ */
/*
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: pl_1.c,v 1.5 1999/01/18 21:53:22 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: pl_1.c,v 1.6 2002/01/07 03:44:29 millert Exp $";
#endif
#endif /* not lint */
@@ -68,7 +68,7 @@ leave(conditions)
(void) signal(SIGINT, SIG_IGN);
(void) signal(SIGQUIT, SIG_IGN);
(void) signal(SIGALRM, SIG_IGN);
- (void) signal(SIGCHLD, SIG_IGN);
+ (void) signal(SIGCHLD, SIG_DFL);
if (done_curses) {
Msg("It looks like you've had it!");
@@ -139,7 +139,7 @@ child(n)
int pid;
int save_errno = errno;
- (void) signal(SIGCHLD, SIG_IGN);
+ (void) signal(SIGCHLD, SIG_DFL);
do {
pid = wait3((int *)&status, WNOHANG, (struct rusage *)0);
if (pid < 0 || (pid > 0 && !WIFSTOPPED(status)))