[Lldb-commits] [PATCH] D57959: [lldb] [MainLoop] Initialize empty sigset_t correctly
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 11 01:19:36 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rLLDB353675: [lldb] [MainLoop] Initialize empty sigset_t correctly (authored by mgorny, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D57959?vs=186011&id=186194#toc
Repository:
rLLDB LLDB
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57959/new/
https://reviews.llvm.org/D57959
Files:
source/Host/common/MainLoop.cpp
Index: source/Host/common/MainLoop.cpp
===================================================================
--- source/Host/common/MainLoop.cpp
+++ source/Host/common/MainLoop.cpp
@@ -137,18 +137,20 @@
}
sigset_t MainLoop::RunImpl::get_sigmask() {
-#if SIGNAL_POLLING_UNSUPPORTED
- return 0;
-#else
sigset_t sigmask;
+#if defined(_WIN32)
+ sigmask = 0;
+#elif SIGNAL_POLLING_UNSUPPORTED
+ sigemptyset(&sigmask);
+#else
int ret = pthread_sigmask(SIG_SETMASK, nullptr, &sigmask);
assert(ret == 0);
(void) ret;
for (const auto &sig : loop.m_signals)
sigdelset(&sigmask, sig.first);
- return sigmask;
#endif
+ return sigmask;
}
#ifdef __ANDROID__
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57959.186194.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190211/fb916153/attachment.bin>
More information about the lldb-commits
mailing list