Skip to content

Commit

Permalink
Clarify fopen error on daemon pidfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chu11 committed Mar 20, 2017
1 parent 4b614e7 commit 969167f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>

* doc/freeipmi-bugs-and-workarounds.txt: Document issue with
Expand Down
2 changes: 1 addition & 1 deletion common/toolcommon/tool-daemon-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 969167f

Please sign in to comment.