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

Re: Could not catch all children after fork, some of them never end

by soonix (Vicar)
on Mar 13, 2013 at 23:10 UTC ( #1023319=note: print w/ replies, xml ) Need Help??


in reply to Could not catch all children after fork, some of them never end

Wild guess: Are the children writing to the same db? (B)locking issues?


Comment on Re: Could not catch all children after fork, some of them never end
Re^2: Could not catch all children after fork, some of them never end
by krabbl (Initiate) on Mar 14, 2013 at 16:08 UTC

    All children are writing to the same BerkeleyDB, but they are using cds_lock/unlock.

    I figured out that some loops became endless after pressing CTRL+C, so I added some additional checks. But at one point there could be a problem, so I would try to check manually if a current lock exists, but I could not figure out how this works in BerkeleyDB...does anybody know?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2015-07-05 03:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls