From f389f77015ebeee30a2527b8eb7488879dd626e0 Mon Sep 17 00:00:00 2001 From: thejch <66577496+thejch@users.noreply.github.com> Date: Fri, 23 Feb 2024 08:48:27 -0800 Subject: [PATCH] core: Try to fix the exit hang (#4811) * add signal removal * use a flag instead * remove signals in cleanup --- src/Compositor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 3976dee9..66bd8bf1 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -372,6 +372,9 @@ void CCompositor::cleanup() { if (!m_sWLDisplay || m_bIsShuttingDown) return; + signal(SIGABRT, SIG_DFL); + signal(SIGSEGV, SIG_DFL); + removeLockFile(); m_bIsShuttingDown = true;