[llvm] [Support] Don't re-raise signals sent from kernel (PR #145759)

Alex Langford via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 9 10:11:39 PDT 2025


================
@@ -413,10 +413,22 @@ static void SignalHandler(int Sig, siginfo_t *Info, void *) {
     raise(Sig);
 #endif
 
-  // Signal sent from another process, do not assume that continuing the
-  // execution would re-raise it.
-  if (Info->si_pid != getpid())
+  // Signal sent from another userspace process, do not assume that continuing
+  // the execution would re-raise it.
+  if (Info->si_pid != getpid() && Info->si_pid != 0) {
+#if defined(__linux__) || defined(__ANDROID__)
----------------
bulbazord wrote:

I could have sworn I removed that... should be gone now.

https://github.com/llvm/llvm-project/pull/145759


More information about the llvm-commits mailing list