Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Zombie-less forking inside a daemon?

by crouchingpenguin (Priest)
on Jun 13, 2006 at 13:57 UTC ( #555047=note: print w/ replies, xml ) Need Help??


in reply to Zombie-less forking inside a daemon?

You want to use the double fork method that orphans your process to be reclaimed by init (PID 1). Within your child, fork again and die immediately. The original process (grandparent) then waits for the new parent while the grandchild goes off to do notifications.


cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."


Comment on Re: Zombie-less forking inside a daemon?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-08-30 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (346 votes), past polls