summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-02-11 00:45:14 +0000
committerStef Walter <stef@memberwebs.com>2005-02-11 00:45:14 +0000
commitfea22a1c49416b3ef1036cd7ca3fc55ff7779499 (patch)
tree04070259680e95f100f57386dea8bcdb27618640
parent904076ce6b4f47e34de975d931bade396d63d9dc (diff)
Don't write pid file when none is selected.
-rw-r--r--daemon/httpauthd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c
index 6921ece..0524fdd 100644
--- a/daemon/httpauthd.c
+++ b/daemon/httpauthd.c
@@ -343,7 +343,8 @@ int main(int argc, char* argv[])
g_daemonized = 1;
}
- writepid(pidfile);
+ if(pidfile != NULL)
+ writepid(pidfile);
/* Handle some signals */
signal(SIGPIPE, SIG_IGN);