From 969167f35f3c9cc132e121dc91b6a222d92c2bb0 Mon Sep 17 00:00:00 2001 From: Albert Chu Date: Mon, 20 Mar 2017 11:07:16 -0700 Subject: [PATCH] Clarify fopen error on daemon pidfile --- ChangeLog | 3 +++ common/toolcommon/tool-daemon-common.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e23bb934b..8a25b47f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * man/ipmiseld.8.pre.in: Clarify --test-run and --foreground options. + * common/toolcommon/tool-daemon-common.c (daemonize_common): + Clarify fopen error on daemon pidfile + 2017-01-30 Albert Chu * doc/freeipmi-bugs-and-workarounds.txt: Document issue with diff --git a/common/toolcommon/tool-daemon-common.c b/common/toolcommon/tool-daemon-common.c index 521b32317..363336ff8 100644 --- a/common/toolcommon/tool-daemon-common.c +++ b/common/toolcommon/tool-daemon-common.c @@ -100,7 +100,7 @@ daemonize_common (const char *pidfile) (void) unlink (pidfile); if (!(pf = fopen (pidfile, "w"))) - err_exit ("fopen: %s", strerror (errno)); + err_exit ("Cannot open pidfile '%s': %s", pidfile, strerror (errno)); /* write the 2nd child PID to the pidfile */ fprintf (pf, "%u\n", pid);