From 92cf807f392e4c1454835a2ef7b17a0a1e62cd81 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 7 Jan 2002 03:56:03 +0000 Subject: To disable a SIGCHLD signal handler use SIG_DFL, *not* SIG_IGN which now has a different meaning. --- libexec/ftpd/ftpd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libexec/ftpd/ftpd.c') 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; -- cgit v1.2.3