[Lldb-commits] [lldb] [lldb] Unify/improve MainLoop signal handling (PR #115197)
Michał Górny via lldb-commits
lldb-commits at lists.llvm.org
Sat Nov 16 04:28:26 PST 2024
================
@@ -295,26 +243,17 @@ MainLoopPosix::RegisterSignal(int signo, const Callback &callback,
sigaddset(&new_action.sa_mask, signo);
sigset_t old_set;
- g_signal_flags[signo] = 0;
+ // Set signal info before installing the signal handler!
+ g_signal_info[signo].pipe_fd = m_trigger_pipe.GetWriteFileDescriptor();
----------------
mgorny wrote:
Do we actually expect having different `pipe_fd` for different signals?
https://github.com/llvm/llvm-project/pull/115197
More information about the lldb-commits
mailing list