From 7f5777a9f7268fa85442da07e12f0a4756dd48e2 Mon Sep 17 00:00:00 2001 From: Josh Elsasser Date: Thu, 16 Aug 2007 00:02:43 +0000 Subject: [PATCH] Fix -p option to be optional. Someone pass the dunce cap over this way. --- daemon/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/daemon.c b/daemon/daemon.c index 27365e6d2..2583aa6ea 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -85,7 +85,7 @@ main( int argc, char ** argv ) errsyslog( 1 ); } - if( 0 > savepid( pidfile ) ) + if( NULL != pidfile && 0 > savepid( pidfile ) ) exit( 1 ); atexit( exitcleanup ); sockfd = trylocksock( sockpath );