Commit Diff


commit - 112102b10ce991340ba56e272e32bc50a73e1b05
commit + 8edeed8418a4d9c76fe80e4391e8dd37f2c1ec78
blob - 89b2f7f8b0362406c0bbb2909bb77a52bc389f4a
blob + f85ce5bde2034bf1d6e13908802ed96e51b55f97
--- src/ngircd/ngircd.c
+++ src/ngircd/ngircd.c
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: ngircd.c,v 1.88 2005/02/04 14:24:21 alex Exp $";
+static char UNUSED id[] = "$Id: ngircd.c,v 1.89 2005/02/07 19:31:34 alex Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -617,13 +617,13 @@ Pidfile_Create( LONG pid )
 
 	/* Pidfile configured? */
 	if( ! Conf_PidFile[0] ) return;
-
-	pidf = fopen( Conf_PidFile, "w" );
 
 #ifdef DEBUG
 	Log( LOG_DEBUG, "Creating PID file (%s) ...", Conf_PidFile );
 #endif
 
+	pidf = fopen( Conf_PidFile, "w" );
+
 	if( ! pidf )
 	{
 		Log( LOG_ERR, "Error writing PID file (%s): %s", Conf_PidFile, strerror( errno ));