From 6fddefe25223aff0e29a8eaea38411336b69ad87 Mon Sep 17 00:00:00 2001 From: Vernon Tang Date: Tue, 12 Jan 2016 17:38:17 +0000 Subject: [PATCH] shrpx_worker_process: worker_process_event_loop: Fix FD test. This fixes a crash in nghttpx when running on IPv6 only. --- src/shrpx_worker_process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shrpx_worker_process.cc b/src/shrpx_worker_process.cc index c2358c58..0ab76932 100644 --- a/src/shrpx_worker_process.cc +++ b/src/shrpx_worker_process.cc @@ -391,7 +391,7 @@ int worker_process_event_loop(WorkerProcessConfig *wpconf) { conn_handler.set_acceptor6( make_unique(wpconf->server_fd6, &conn_handler)); } - if (wpconf->server_fd != 1) { + if (wpconf->server_fd != -1) { conn_handler.set_acceptor( make_unique(wpconf->server_fd, &conn_handler)); }