diff options
author | Julien Cristau <julien.cristau@logilab.fr> | 2011-09-06 11:13:48 +0200 |
---|---|---|
committer | Julien Cristau <julien.cristau@logilab.fr> | 2011-09-06 11:13:48 +0200 |
commit | 23a3aa51b7464990be210167261f29653bb80491 (patch) | |
tree | 4c9150e675d545df25860bad606003b0f0a172fc | |
parent | 05683971ad8fcd5f6049e98093da9136c90b546e (diff) | |
download | logilab-common-23a3aa51b7464990be210167261f29653bb80491.tar.gz |
daemon: update comments
Fix one typo, update URL to something that still exists.
-rw-r--r-- | daemon.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,13 +33,12 @@ def daemonize(pidfile=None, uid=None, umask=077): Return 1 in the original process, 2 in the first fork, and None for the second fork (eg daemon process). """ - # See http://www.erlenstar.demon.co.uk/unix/faq_toc.html#TOC16 - # XXX unix specific + # http://www.faqs.org/faqs/unix-faq/programmer/faq/ # # fork so the parent can exit if os.fork(): # launch child and... return 1 - # deconnect from tty and create a new session + # disconnect from tty and create a new session os.setsid() # fork again so the parent, (the session group leader), can exit. # as a non-session group leader, we can never regain a controlling |