nghttpx: Don't need to trap SIGTERM and SIGINT signals
This commit is contained in:
parent
ad5d73738c
commit
a28aee058f
|
@ -818,9 +818,8 @@ int event_loop() {
|
||||||
|
|
||||||
ssv.worker_process_pid = pid;
|
ssv.worker_process_pid = pid;
|
||||||
|
|
||||||
constexpr auto signals =
|
constexpr auto signals = std::array<int, 3>{
|
||||||
std::array<int, 5>{{REOPEN_LOG_SIGNAL, EXEC_BINARY_SIGNAL,
|
{REOPEN_LOG_SIGNAL, EXEC_BINARY_SIGNAL, GRACEFUL_SHUTDOWN_SIGNAL}};
|
||||||
GRACEFUL_SHUTDOWN_SIGNAL, SIGINT, SIGTERM}};
|
|
||||||
auto sigevs = std::array<ev_signal, signals.size()>();
|
auto sigevs = std::array<ev_signal, signals.size()>();
|
||||||
|
|
||||||
for (size_t i = 0; i < signals.size(); ++i) {
|
for (size_t i = 0; i < signals.size(); ++i) {
|
||||||
|
|
Loading…
Reference in New Issue