start: avoid crash in dtor after forceQuit
This commit is contained in:
parent
f7f357f15f
commit
2525052779
1 changed files with 2 additions and 0 deletions
|
|
@ -74,6 +74,8 @@ void CHyprlandInstance::runHyprlandThread(bool safeMode) {
|
||||||
void CHyprlandInstance::forceQuit() {
|
void CHyprlandInstance::forceQuit() {
|
||||||
m_hyprlandExiting = true;
|
m_hyprlandExiting = true;
|
||||||
kill(m_hlPid, SIGTERM); // gracefully, can get stuck but it's unlikely
|
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) {
|
void CHyprlandInstance::clearFd(const Hyprutils::OS::CFileDescriptor& fd) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue