This commit is contained in:
Nav
2021-11-17 21:45:56 +00:00
parent 3fee62d5ea
commit e45a235d22
3 changed files with 10 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ void Application::startup() {
this->blockAllSignalsOnCurrentThread();
this->signalHandlerThread = std::thread(&SignalHandler::run, std::ref(this->signalHandler));
Logger::info("Selected environment: " + this->selectedEnvironmentName);
Logger::info("Selected environment: \"" + this->selectedEnvironmentName + "\"");
Logger::debug("Number of environments extracted from config: "
+ std::to_string(this->applicationConfig.environments.size()));
@@ -153,7 +153,10 @@ void Application::shutdown() {
// Signal handler is still running
this->signalHandler.triggerShutdown();
// Send meaningless signal to the SignalHandler thread to have it shutdown.
/*
* Send meaningless signal to the SignalHandler thread to have it shutdown. The signal will pull it out of a
* blocking state and allow it to action the shutdown. See SignalHandler::run() for more.
*/
pthread_kill(this->signalHandlerThread.native_handle(), SIGUSR1);
}