1
0
forked from bip/bip

add fclose on pid file

This commit is contained in:
Arnaud Cornet 2009-01-06 16:34:17 +01:00
parent eb57d9683d
commit a57e76f883

View File

@ -228,6 +228,7 @@ pid_is_there:
if (c != 1 || p == 0) { if (c != 1 || p == 0) {
mylog(LOG_INFO, "pid file found but invalid " mylog(LOG_INFO, "pid file found but invalid "
"data inside. Continuing...\n"); "data inside. Continuing...\n");
fclose(f);
if (unlink(conf_pid_file)) { if (unlink(conf_pid_file)) {
fatal("Cannot delete pid file '%s', " fatal("Cannot delete pid file '%s', "
"check permissions.\n", "check permissions.\n",