http://www.perlmonks.org?node_id=555047


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."