start: avoid crash in dtor after forceQuit

This commit is contained in:
Vaxry 2025-12-24 20:27:00 +01:00
parent f7f357f15f
commit 2525052779
No known key found for this signature in database
GPG key ID: 665806380871D640

View file

@ -74,6 +74,8 @@ void CHyprlandInstance::runHyprlandThread(bool safeMode) {
void CHyprlandInstance::forceQuit() {
m_hyprlandExiting = true;
kill(m_hlPid, SIGTERM); // gracefully, can get stuck but it's unlikely
m_hlThread.join(); // needs this otherwise can crash
}
void CHyprlandInstance::clearFd(const Hyprutils::OS::CFileDescriptor& fd) {