fix misleading fatal() message (pidfile error)

This commit is contained in:
Loc Gomez 2008-01-07 14:00:25 +01:00
parent 56b73ad73a
commit 8b272bb0fd
1 changed files with 2 additions and 1 deletions

View File

@ -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) {