Categories
Software and Programming

Act Like a Daemon

Unix Programming Frequently Asked Questions 1.7: How do I get my program to act like a daemon?

Watch carefully – you fork twice, after propitiating the appropriate dieties/system calls… (via Sam Ruby).