Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Parallel ForkManager problem: parent dies early before all the child finishes

by Mr. Muskrat (Abbot)
on Aug 19, 2011 at 18:10 UTC ( #921302=note: print w/ replies, xml ) Need Help??


in reply to Parallel ForkManager problem: parent dies early before all the child finishes

Do you really want $dbh->{InactiveDestroy} = 1 there?

In that context, wouldn't it make more sense to use $child_dbh->{InactiveDestroy} = 1?


Comment on Re: Parallel ForkManager problem: parent dies early before all the child finishes
Select or Download Code
Re^2: Parallel ForkManager problem: parent dies early before all the child finishes
by runrig (Abbot) on Aug 19, 2011 at 18:38 UTC
    No, it's the parent handle that you don't want to disconnect when the child process ends, and that's what the attribute does, it prevents disconnect upon destruction. Although I now notice in the docs an 'AutoInactiveDestroy' attribute, which looks more convenient.

      Even the DBI docs say that you probably want to set InactiveDestroy in the child (although it says so in the section for AutoInactiveDestroy.)

      Update: Okay, I see what I did there. LOL

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2014-09-23 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls