X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fdaemon.py;h=015745b2e436d5adc23dcdd87c62dcf0f26bd7a0;hb=af5f8a1cbde1e61ec1b44da676fae89c4358d184;hp=06f7beeae9a36e33459f3207a25f6fb75715f8af;hpb=0236b2bf31b893ab0b53374c0d3a0bc0ab9deda3;p=mpd-sima.git diff --git a/sima/lib/daemon.py b/sima/lib/daemon.py index 06f7bee..015745b 100644 --- a/sima/lib/daemon.py +++ b/sima/lib/daemon.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- - # Public Domain # # Copyright 2007, 2009 Sander Marechal # http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ # -# Copyright 2010, 2011 Jack Kaliko +# Copyright 2010, 2011 kaliko # https://gitorious.org/python-daemon # # This file is part of MPD_sima @@ -62,8 +61,8 @@ class Daemon(object): 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. + 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. """