summaryrefslogtreecommitdiffstats
path: root/saslauthd
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-09 13:25:54 +0000
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2011-11-09 13:25:54 +0000
commit2338814c2f84d1aa7bede235703a0b85a10a9dcf (patch)
treef09029cc2ccb8c9e18aa9eef2597c298496da2aa /saslauthd
parent8e397c829a317334be759c640710c512a601046f (diff)
downloadpykolab-2338814c2f84d1aa7bede235703a0b85a10a9dcf.tar.gz
Fix forking to the background
Diffstat (limited to 'saslauthd')
-rw-r--r--saslauthd/__init__.py5
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