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,10 +20,9 @@ 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void epoll_add(struct client_state_t *cs, int fd)
|
void epoll_add(struct client_state_t *cs, int fd)
|
||||||
|
Loading…
Reference in New Issue
Block a user