From 41f590fb0fab115810194cc14d5764e6b0e61b0d Mon Sep 17 00:00:00 2001 From: Bryan Biedenkapp Date: Sat, 8 Jul 2023 13:45:14 -0400 Subject: [PATCH] better handle SIGHUP (reset g_killed to false at the top of the HostMain signal loop); --- src/HostMain.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HostMain.cpp b/src/HostMain.cpp index c1816cbb..5f596b31 100644 --- a/src/HostMain.cpp +++ b/src/HostMain.cpp @@ -112,8 +112,8 @@ uint8_t* g_gitHashBytes = nullptr; /// static void sigHandler(int signum) { - g_killed = true; g_signal = signum; + g_killed = true; } #endif @@ -313,6 +313,7 @@ int main(int argc, char** argv) do { g_signal = 0; + g_killed = false; if (g_fne) { HostFNE *fne = new HostFNE(g_iniFile);