================ @@ -794,6 +800,10 @@ int main(int argc, char const *argv[]) { signal(SIGTSTP, sigtstp_handler); #endif + // Run the signal handling MainLoop on a separate thread. + std::thread signal_thread([] { g_signal_loop.Run(); }); + signal_thread.detach(); ---------------- labath wrote:
I'd like to avoid a detached thread running around causing havoc during process destruction. Why not just join the thread right after the RequestTermination call? https://github.com/llvm/llvm-project/pull/134956 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits