diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-07 03:56:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-01-07 03:56:03 +0000 |
commit | 92cf807f392e4c1454835a2ef7b17a0a1e62cd81 (patch) | |
tree | de6d10b640d6e37a786eb7c61ce40b0857eabd3a | |
parent | 6b3d90cecd5cb04f150acca617c1c33226b12276 (diff) |
To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGN
which now has a different meaning.
-rw-r--r-- | libexec/ftpd/ftpd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index c0f8f4df3c9..6f1f518c28e 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.112 2001/12/18 00:27:57 millert Exp $ */ +/* $OpenBSD: ftpd.c,v 1.113 2002/01/07 03:56:02 millert Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -73,7 +73,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94"; #else -static char rcsid[] = "$OpenBSD: ftpd.c,v 1.112 2001/12/18 00:27:57 millert Exp $"; +static char rcsid[] = "$OpenBSD: ftpd.c,v 1.113 2002/01/07 03:56:02 millert Exp $"; #endif #endif /* not lint */ @@ -484,7 +484,7 @@ main(argc, argv, envp) /* set this here so klogin can use it... */ (void)snprintf(ttyline, sizeof(ttyline), "ftp%d", getpid()); - sa.sa_handler = SIG_IGN; + sa.sa_handler = SIG_DFL; (void) sigaction(SIGCHLD, &sa, NULL); sa.sa_handler = sigurg; |