Commit c1f7795d authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Set close-on-exec flag on listener in worker process

parent 4989e6e4
......@@ -1209,6 +1209,12 @@ pid_t fork_worker_process(int &main_ipc_fd,
if (pid == 0) {
ev_loop_fork(EV_DEFAULT);
auto config = get_config();
for (auto &addr : config->conn.listener.addrs) {
util::make_socket_closeonexec(addr.fd);
}
// Remove all WorkerProcesses to stop any registered watcher on
// default loop.
worker_process_remove_all();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment