Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Managing the fork/execing and reaping of child processes

by mr_mischief (Monsignor)
on Jul 16, 2015 at 19:44 UTC ( [id://1135073]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Managing the fork/execing and reaping of child processes
in thread Managing the fork/execing and reaping of child processes

Okay, let me put it this way. If one wanted to not just die and to attempt to actually deal with not being able to fork more than X children even though Y children were requested, the example would need more changes than just removing the die() and reporting the error. The counts would also need to be moved. So in an example program that's going to be expanded upon and altered, it may be fruitful to track those things in the proper place from the beginning.

Replies are listed 'Best First'.
Re^5: Managing the fork/execing and reaping of child processes
by Anonymous Monk on Jul 16, 2015 at 19:51 UTC

    If you're going to remove the die, just replace it with decrementing the counters. :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 19:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found