From 5c33c8d11328e9e388e5bfb071a6c4991cd4a15d Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sun, 28 Oct 2018 15:54:36 +0000 Subject: [PATCH] fixed sigset_t initializatino issue --- qse/lib/si/App.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qse/lib/si/App.cpp b/qse/lib/si/App.cpp index 36d29895..1d4959ef 100644 --- a/qse/lib/si/App.cpp +++ b/qse/lib/si/App.cpp @@ -38,11 +38,15 @@ QSE_BEGIN_NAMESPACE(QSE) static Mutex g_app_mutex; static App* g_app_top = QSE_NULL; // maintain the chain of application objects static App* g_app_sig[QSE_NSIGS] = { QSE_NULL, }; -static struct +static struct app_sig_t { + app_sig_t(): sa_flags(0) + { + sigemptyset (&sa_mask); + } sigset_t sa_mask; int sa_flags; -} g_app_oldsi[QSE_NSIGS] = { { 0, 0 }, }; +} g_app_oldsi[QSE_NSIGS]; class SigScopedMutexLocker {