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:
parent
11e71837fd
commit
03d3cbfdb9
@ -20,9 +20,8 @@ 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);
|
||||
}
|
||||
log_line("cannot open pidfile for write!");
|
||||
} else
|
||||
write_pid(pidfile);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user