summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pid_output.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pid_output.c b/lib/pid_output.c
index e2e4434150..9a7307bc4f 100644
--- a/lib/pid_output.c
+++ b/lib/pid_output.c
@@ -57,7 +57,8 @@ pid_t pid_output(const char *path)
lock.l_whence = SEEK_SET;
if (fcntl(fd, F_SETLK, &lock) < 0) {
- zlog_err("Could not lock pid_file %s, exiting", path);
+ zlog_err("Could not lock pid_file %s (%s), exiting",
+ path, safe_strerror(errno));
exit(1);
}