Merge pull request #1958 from nghttp2/nghttpx-fix

nghttpx: Fix bug that --single-process does not work
This commit is contained in:
Tatsuhiro Tsujikawa 2023-10-01 15:39:23 +09:00 committed by GitHub
commit e62ef924fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1675,10 +1675,10 @@ pid_t fork_worker_process(
}
#endif // ENABLE_HTTP3
close(worker_process_ready_ipc_fd[0]);
shutdown_worker_process_ready_ipc_watcher(EV_DEFAULT);
if (!config->single_process) {
close(worker_process_ready_ipc_fd[0]);
shutdown_worker_process_ready_ipc_watcher(EV_DEFAULT);
shutdown_signal_watchers(EV_DEFAULT);
}