summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Cristau <julien.cristau@logilab.fr>2011-09-06 11:13:48 +0200
committerJulien Cristau <julien.cristau@logilab.fr>2011-09-06 11:13:48 +0200
commit23a3aa51b7464990be210167261f29653bb80491 (patch)
tree4c9150e675d545df25860bad606003b0f0a172fc
parent05683971ad8fcd5f6049e98093da9136c90b546e (diff)
downloadlogilab-common-23a3aa51b7464990be210167261f29653bb80491.tar.gz
daemon: update comments
Fix one typo, update URL to something that still exists.
-rw-r--r--daemon.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/daemon.py b/daemon.py
index 2d85867..7890637 100644
--- a/daemon.py
+++ b/daemon.py
@@ -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