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,9 +20,8 @@ void background(void)
} }
called = 1; /* Do not fork again. */ called = 1; /* Do not fork again. */
if (file_exists(pidfile, "w") == -1) { if (file_exists(pidfile, "w") == -1) {
log_line("FATAL - cannot open pidfile for write!"); log_line("cannot open pidfile for write!");
exit(EXIT_FAILURE); } else
}
write_pid(pidfile); write_pid(pidfile);
} }