- do the UNIX double-fork magic, see Stevens' "Advanced
- Programming in the UNIX Environment" for details (ISBN 0201563177)
- http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16
+ Do the UNIX double-fork magic.
+ see W. Richard Stevens, "Advanced Programming in the Unix Environment"
+ for details (ISBN 0201563177)
+
+ Short explanation:
+ Unix processes belong to "process group" which in turn lies within a "session".
+ A session can have a controlling tty.
+ Forking twice allows to detach the session from a possible tty.
+ The process lives then within the init process.