Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Parallel::ForkManager and system "command",@args;

by ikegami (Patriarch)
on Jan 13, 2006 at 16:57 UTC ( [id://523029]=note: print w/replies, xml ) Need Help??


in reply to Parallel::ForkManager and system "command",@args;

Are you sure you want to use system (which consists of a fork, an exec and a waitpid) instead of exec? If you need to return to the Perl script, great. If not, use exec. As far as I can tell, both will work.

Update: On second thought, you need to call finish, so exec is out. Looking at the module's guts, system should be ok, since the module doesn't care what the children do, as long as they call finish when they are done.

Update: After further digging, it's doesn't appear necessary to call finish in the child after all, since all it does is call exit. That means exec would work as well!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2024-04-24 10:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found