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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user