Skip Menu |

This queue is for tickets about the Sendmail-PMilter CPAN distribution.

Report information
The Basics
Id: 85826
Status: resolved
Priority: 0/
Queue: Sendmail-PMilter

People
Owner: pause [...] jubileegroup.co.uk
Requestors: jik [...] kamens.brookline.ma.us
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.00
Fixed in: 1.20_01



Subject: sigchild handler steals child-reaping ability from milters
Sometimes milters need to call subprocesses and reap them explicitly to obtain their exit statuses. You break that by setting a SIGCHLD handler in the parent process and then not unsetting it in the children. Fixed in the attached patch.
Subject: pmilter.patch
--- PMilter.pm 2013/06/03 13:58:04 1.1 +++ PMilter.pm 2013/06/03 13:58:56 @@ -925,6 +925,7 @@ undef $lsocket; undef $@; $SIG{PIPE} = 'IGNORE'; # so close_callback will be reached + $SIG{CHLD} = 'DEFAULT'; $SIG{$siginfo} = 'DEFAULT'; &$handler($socket);
Patch applied in V1.21, not yet released.