aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-12-13 05:11:05 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-12-13 05:11:05 +0000
commitdf9d522301cbc3e73e9816485f7deb744ae6f373 (patch)
tree92dce208df4c7f5203446d6eb5c1febe906f357b /sink.c
parent8dcde6bdc0a17bd0bffb1f2436325038a0fa9103 (diff)
downloadfetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.tar.gz
fetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.tar.bz2
fetchmail-df9d522301cbc3e73e9816485f7deb744ae6f373.zip
Ready to ship 6-2-0.
svn path=/trunk/; revision=3776
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sink.c b/sink.c
index a6f87aaa..3ba9e873 100644
--- a/sink.c
+++ b/sink.c
@@ -1011,9 +1011,6 @@ static int open_mda_sink(struct query *ctl, struct msgblk *msg,
int *good_addresses, int *bad_addresses)
/* open a stream to a local MDA */
{
-#ifdef HAVE_SIGACTION
- struct sigaction sa_new;
-#endif /* HAVE_SIGACTION */
#ifdef HAVE_SETEUID
uid_t orig_uid;
#endif /* HAVE_SETEUID */
@@ -1166,14 +1163,7 @@ static int open_mda_sink(struct query *ctl, struct msgblk *msg,
* sigchld_handler() would reap away the error status, returning
* error status instead of 0 for successful completion.
*/
-#ifndef HAVE_SIGACTION
- signal(SIGCHLD, SIG_DFL);
-#else
- memset (&sa_new, 0, sizeof sa_new);
- sigemptyset (&sa_new.sa_mask);
- sa_new.sa_handler = SIG_DFL;
- sigaction (SIGCHLD, &sa_new, NULL);
-#endif /* HAVE_SIGACTION */
+ set_signal_handler(SIGCHLD, SIG_DFL);
return(PS_SUCCESS);
}