[clang] [clang-tools-extra] [llvm] [LLVM][CLANG] Update signal-handling behavior to comply with POSIX (PR #169340)
Xing Xue via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 9 08:26:49 PST 2026
================
@@ -99,8 +99,16 @@ using SignalHandlerCallback = void (*)(void *);
/// Add a function to be called when an abort/kill signal is delivered to the
/// process. The handler can have a cookie passed to it to identify what
-/// instance of the handler it is.
+/// instance of the handler it is. On Unix systems, the
+/// NeedsPOSIXUtilitySignalHandling argument indicates whether POSIX signal
+/// handling semantics are followed, so that the signal handler resignals
+/// itself to terminate after handling the signal.
+#ifdef _WIN32
LLVM_ABI void AddSignalHandler(SignalHandlerCallback FnPtr, void *Cookie);
----------------
xingxue-ibm wrote:
Changed as suggested, thanks!
https://github.com/llvm/llvm-project/pull/169340
More information about the llvm-commits
mailing list