ports/mail/exim/files/patch-src::exim.c
Sheldon Hearn 34323bd7e0 Add the author's patch to fix a failure to reap children on BSD systems,
where SIG_IGN as the signal handler for SIGCHLD is bad.  This is only
an issue when a significant number of messages is received via pipe
(e.g. with -bS) at a faster rate than they can be dealt with by parallel
delivery agents (e.g. -odqs).

Bump PORTREVISION to reflect the change.

Obtained from: exim-users@exim.org
Message-Id: Pine.SOL.4.33.0111021349170.19636-100000@virgo.cus.cam.ac.uk
2001-11-02 17:11:14 +00:00

20 lines
571 B
C

--- src/exim.c.orig Wed Aug 15 13:09:09 2001
+++ src/exim.c Fri Nov 2 12:22:38 2001
@@ -2197,7 +2197,8 @@
if (!admin_user)
{
- if (deliver_give_up || daemon_listen || count_queue ||
+ if (deliver_give_up || daemon_listen ||
+ (count_queue && queue_list_requires_admin) ||
(list_queue && queue_list_requires_admin) ||
(queue_interval >= 0 && prod_requires_admin))
{
@@ -3462,6 +3463,7 @@
}
/* The loop will repeat if more is TRUE. */
+ while (waitpid(-1, NULL, WNOHANG) > 0);
}
exim_exit(EXIT_SUCCESS); /* Never returns */