From 8b272bb0fdb1b1578094a1317c552b848684b4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=EFc=20Gomez?= Date: Mon, 7 Jan 2008 14:00:25 +0100 Subject: [PATCH] fix misleading fatal() message (pidfile error) --- src/bip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bip.c b/src/bip.c index a8d638e..bc81e40 100644 --- a/src/bip.c +++ b/src/bip.c @@ -202,7 +202,8 @@ try_again: (long unsigned int)getpid()); int fd; if ((fd = open(longpath, O_CREAT|O_WRONLY, S_IWUSR|S_IRUSR)) == -1) - fatal("%s %s", "open", strerror(errno)); + fatal("Cannot write to PID file (%s) %s", longpath, + strerror(errno)); if (link(longpath, conf_pid_file) == -1) { struct stat buf; if (stat(longpath, &buf) == -1) {