diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-12-24 20:27:00 +0100 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-12-24 20:27:00 +0100 |
| commit | 25250527793eb04bb60f103abe7f06370b9f6e1c (patch) | |
| tree | 29bed2f4996c788d5f3e909fbd9790cf8fef2cdf /start | |
| parent | f7f357f15f83612078eb0919ca08b71cac01c25e (diff) | |
start: avoid crash in dtor after forceQuit
Diffstat (limited to 'start')
| -rw-r--r-- | start/src/core/Instance.cpp | 2 |
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) { |
