add fclose on pid file
This commit is contained in:
parent
eb57d9683d
commit
a57e76f883
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user