Fix -p option to be optional. Someone pass the dunce cap over this way.

This commit is contained in:
Josh Elsasser
2007-08-16 00:02:43 +00:00
parent 37373317d9
commit 7f5777a9f7

View File

@@ -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 );