1
0
forked from bip/bip

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

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