Mailing List Archive

[perl #82580] Signals not cleared by fork
On Tue Apr 17 04:09:16 2012, LeonT wrote:
> On Tue Jan 25 12:06:00 2011, Leolo wrote:
> > On Sun Jan 23 04:44:57 2011, blgl@stacken.kth.se wrote:
> > > You misunderstand. It's ignored signals that are lost, not blocked
> ones.
> >
> > A short test shows that while CHLD makes it through, waitpid() will
> > always return -1. Tested on 5.8.8, 5.10.1, 5.12.2.
>
> Perl reaps processes when closing filehandles created through �open
> "-|"�, there's nothing weird or worrisome about your observation.
>
> Leon

There's a patch that fixes this in the smoke-me/leont/signals-fork
branch. Given it's a non-deterministic issue, I don't have a test though.

Leon

---
via perlbug: queue: perl5 status: open
https://rt.perl.org:443/rt3/Ticket/Display.html?id=82580