Do not treat a failure to write the pid file after backgrounding after

obtaining a lease as a fatal error.
This commit is contained in:
Nicholas J. Kain 2010-12-26 18:21:58 -05:00
parent 11e71837fd
commit 03d3cbfdb9

View File

@ -20,10 +20,9 @@ void background(void)
}
called = 1; /* Do not fork again. */
if (file_exists(pidfile, "w") == -1) {
log_line("FATAL - cannot open pidfile for write!");
exit(EXIT_FAILURE);
}
write_pid(pidfile);
log_line("cannot open pidfile for write!");
} else
write_pid(pidfile);
}
void epoll_add(struct client_state_t *cs, int fd)