Skip to content

Commit

Permalink
Merge pull request #631 from awiddersheim/fix/log_pid_removal_failure
Browse files Browse the repository at this point in the history
Log failure removing PID files
  • Loading branch information
jrossi committed Jun 25, 2015
2 parents ce48521 + d9cffed commit f5e51ee
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/shared/file_op.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,15 @@ int DeletePID(const char *name)
return (-1);
}

unlink(file);
if (unlink(file)) {
log2file(
DELETE_ERROR,
__local_name,
file,
errno,
strerror(errno)
);
}

return (0);
}
Expand Down

0 comments on commit f5e51ee

Please sign in to comment.