summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dm.c b/dm.c
index 0edb565..1915c85 100644
--- a/dm.c
+++ b/dm.c
@@ -142,6 +142,8 @@ main (int argc, char **argv)
}
if (debugLevel == 0 && daemonMode)
BecomeDaemon ();
+ if (debugLevel == 0)
+ InitErrorLog ();
if (debugLevel >= 10)
nofork_session = 1;
/* SUPPRESS 560 */
@@ -154,8 +156,6 @@ main (int argc, char **argv)
pidFile, oldpid);
exit (1);
}
- if (debugLevel == 0)
- InitErrorLog ();
if (nofork_session == 0) {
/* Clean up any old Authorization files */