From 4a06f9684f8c4f047923c41401e5b50a1bf70de0 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 8 Feb 2017 22:14:23 +0900 Subject: [PATCH] nghttpx: Fix crash on SIGHUP with multi thread configuration --- src/shrpx_connection_handler.cc | 2 +- src/shrpx_worker.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shrpx_connection_handler.cc b/src/shrpx_connection_handler.cc index 307b3c9c..03de0911 100644 --- a/src/shrpx_connection_handler.cc +++ b/src/shrpx_connection_handler.cc @@ -352,7 +352,7 @@ void ConnectionHandler::graceful_shutdown_worker() { (void)reopen_log_files(); join_worker(); ev_async_send(get_loop(), &thread_join_asyncev_); - delete log_config(); + delete_log_config(); }); #endif // NOTHREADS } diff --git a/src/shrpx_worker.cc b/src/shrpx_worker.cc index 84b604ab..8b1a74fd 100644 --- a/src/shrpx_worker.cc +++ b/src/shrpx_worker.cc @@ -313,7 +313,7 @@ void Worker::run_async() { fut_ = std::async(std::launch::async, [this] { (void)reopen_log_files(); ev_run(loop_); - delete log_config(); + delete_log_config(); }); #endif // !NOTHREADS }