3
0
mirror of https://github.com/hyprwm/Hyprland.git synced 2026-02-04 16:45:35 +00:00

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

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) {