diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-11-09 13:25:54 +0000 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2011-11-09 13:25:54 +0000 |
commit | 2338814c2f84d1aa7bede235703a0b85a10a9dcf (patch) | |
tree | f09029cc2ccb8c9e18aa9eef2597c298496da2aa | |
parent | 8e397c829a317334be759c640710c512a601046f (diff) | |
download | pykolab-2338814c2f84d1aa7bede235703a0b85a10a9dcf.tar.gz |
Fix forking to the background
-rw-r--r-- | saslauthd/__init__.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/saslauthd/__init__.py b/saslauthd/__init__.py index 1cffa2b..c74b39c 100644 --- a/saslauthd/__init__.py +++ b/saslauthd/__init__.py @@ -68,8 +68,9 @@ class SASLAuthDaemon(object): if pid == 0: log.remove_stdout_handler() - - self.do_saslauthd() + self.do_saslauthd() + elif not conf.fork_mode: + self.do_saslauthd() except SystemExit, e: exitcode = e |