diff options
author | Stef Walter <stef@memberwebs.com> | 2005-02-11 00:45:14 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2005-02-11 00:45:14 +0000 |
commit | fea22a1c49416b3ef1036cd7ca3fc55ff7779499 (patch) | |
tree | 04070259680e95f100f57386dea8bcdb27618640 | |
parent | 904076ce6b4f47e34de975d931bade396d63d9dc (diff) |
Don't write pid file when none is selected.
-rw-r--r-- | daemon/httpauthd.c | 3 |
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); |