Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

(tye)Re: fork()ing a large process

by tye (Sage)
on Nov 29, 2001 at 22:34 UTC ( [id://128431]=note: print w/replies, xml ) Need Help??


in reply to Re: fork()ing a large process
in thread fork()ing a large process

Actually, using a signal handler to reap children is problematic in Perl because Perl signal handlers aren't 100% reliable. Each time one is trigger, you have something like a 2% chance of corrupting Perl's internal structures. I think this may be fixed in a an upcoming version of Perl.

The safest way to reap children is shown under "perldoc -f waitpid" and closely matches the code in question. Perhaps Solaris doesn't define WNOHANG as 1? That seems unlikely, but that is all I've come up with so far.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: fork()ing a large process
by Jonathan (Curate) on Nov 29, 2001 at 22:47 UTC
    Thanks for looking at it tye. I hoped it might have been something to do with my Perl version. I'm stuck.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-04-19 21:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found