summaryrefslogtreecommitdiff
path: root/start
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-12-24 20:27:00 +0100
committerVaxry <vaxry@vaxry.net>2025-12-24 20:27:00 +0100
commit25250527793eb04bb60f103abe7f06370b9f6e1c (patch)
tree29bed2f4996c788d5f3e909fbd9790cf8fef2cdf /start
parentf7f357f15f83612078eb0919ca08b71cac01c25e (diff)
start: avoid crash in dtor after forceQuit
Diffstat (limited to 'start')
-rw-r--r--start/src/core/Instance.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/start/src/core/Instance.cpp b/start/src/core/Instance.cpp
index 2ff53279..c89d9d0b 100644
--- a/start/src/core/Instance.cpp
+++ b/start/src/core/Instance.cpp
@@ -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) {