nghttpx: Cleanup
This commit is contained in:
parent
8c3e864989
commit
9a8e9815c9
|
@ -271,7 +271,7 @@ void worker_process_kill(int signum) {
|
||||||
}
|
}
|
||||||
kill(s->worker_pid, signum);
|
kill(s->worker_pid, signum);
|
||||||
}
|
}
|
||||||
worker_processes.clear();
|
worker_process_remove_all();
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
|
@ -355,7 +355,7 @@ void save_pid() {
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
void exec_binary(WorkerProcess *wp) {
|
void exec_binary() {
|
||||||
int rv;
|
int rv;
|
||||||
sigset_t oldset;
|
sigset_t oldset;
|
||||||
|
|
||||||
|
@ -527,7 +527,7 @@ void signal_cb(struct ev_loop *loop, ev_signal *w, int revents) {
|
||||||
reopen_log(wp);
|
reopen_log(wp);
|
||||||
return;
|
return;
|
||||||
case EXEC_BINARY_SIGNAL:
|
case EXEC_BINARY_SIGNAL:
|
||||||
exec_binary(wp);
|
exec_binary();
|
||||||
return;
|
return;
|
||||||
case GRACEFUL_SHUTDOWN_SIGNAL:
|
case GRACEFUL_SHUTDOWN_SIGNAL:
|
||||||
ipc_send(wp, SHRPX_IPC_GRACEFUL_SHUTDOWN);
|
ipc_send(wp, SHRPX_IPC_GRACEFUL_SHUTDOWN);
|
||||||
|
|
Loading…
Reference in New Issue