nghttpx: Exit immediately if IPC channel read failed on worker process

This commit is contained in:
Tatsuhiro Tsujikawa 2015-09-29 00:08:46 +09:00
parent a28aee058f
commit 3fca142e5f
1 changed files with 1 additions and 2 deletions

View File

@ -157,8 +157,7 @@ void ipc_readcb(struct ev_loop *loop, ev_io *w, int revents) {
if (nread == 0) {
// IPC socket closed. Perform immediate shutdown.
LOG(FATAL) << "IPC socket is closed. Perform immediate shutdown.";
ev_break(conn_handler->get_loop());
return;
_Exit(EXIT_FAILURE);
}
for (ssize_t i = 0; i < nread; ++i) {