Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by soonix (Curate)
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 imbibing at the Monastery: (8)
As of 2014-12-25 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls