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

Re^8: Doing every X seconds

by jeffenstein (Hermit)
on Aug 07, 2018 at 16:02 UTC ( [id://1220012]=note: print w/replies, xml ) Need Help??

in reply to Re^7: Doing every X seconds
in thread Doing every X seconds

Fork can fail for lots of different reasons. For example: not enough swap to hold two copies of the process, you've reached the max process for your user or globally, not enough physical memory to complete the fork, you got a signal during the fork call, etc.

It seem naive to me to think that an error can't happen; it's better to die if it does happen than to continue on with possible corruption. If you don't like the aesthetic, then write a wrapper that dies on errors, so you can present clean code.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (8)
As of 2024-05-21 11:02 GMT
Find Nodes?
    Voting Booth?

    No recent polls found