develooper Front page | perl.perl5.porters | Postings from July 2013

[perl #113028] [PATCH] Full example of REAPER in perlipc

Thread Next
From:
Tony Cook via RT
Date:
July 12, 2013 07:16
Subject:
[perl #113028] [PATCH] Full example of REAPER in perlipc
Message ID:
rt-3.6.HEAD-2552-1373613371-1599.113028-15-0@perl.org
On Fri May 25 04:21:50 2012, LeonT wrote:
> On Tue, May 22, 2012 at 5:05 PM, Leon Timmermans <fawaka@gmail.com> wrote:
> > Good point. This is the kind of pitfall that should probable be
> > explained in perlipc.
> 
> On second reading, that does not seem necessary. The process will
> receive a sigchild under these circumstances, but waitpid will ignore
> that status unless asked for it (using the WUNTRACED and WCONTINUE
> options).

I've attached a simplified patch that changes the single waitpid() call
to a loop without the WIF*() checks from the original patch.

Looking at the text around that example, I wonder if this example could
be consolidated with the example above it, which already used a
waitpid() loop.

Tony

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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About