core: Try to fix the exit hang (#4811)

* add signal removal

* use a flag instead

* remove signals in cleanup
This commit is contained in:
thejch 2024-02-23 08:48:27 -08:00 committed by GitHub
parent 8c3613632a
commit f389f77015
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -372,6 +372,9 @@ void CCompositor::cleanup() {
if (!m_sWLDisplay || m_bIsShuttingDown) if (!m_sWLDisplay || m_bIsShuttingDown)
return; return;
signal(SIGABRT, SIG_DFL);
signal(SIGSEGV, SIG_DFL);
removeLockFile(); removeLockFile();
m_bIsShuttingDown = true; m_bIsShuttingDown = true;