From fea22a1c49416b3ef1036cd7ca3fc55ff7779499 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 11 Feb 2005 00:45:14 +0000 Subject: Don't write pid file when none is selected. --- daemon/httpauthd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3