Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^8: Doing every X seconds

by jeffenstein (Friar)
on Aug 07, 2018 at 16:02 UTC ( #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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-11-24 09:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?