summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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