mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
anr: add a note for no pid dialogs
This commit is contained in:
@@ -155,6 +155,11 @@ void CANRManager::SANRData::killDialog() const {
|
||||
if (!dialogProc)
|
||||
return;
|
||||
|
||||
if (!dialogProc->pid()) {
|
||||
Debug::log(ERR, "ANR: cannot kill dialogProc, as it doesn't have a pid. If you have hyprutils <= 0.6.0, you will crash soon. Otherwise, dialog failed to spawn??");
|
||||
return;
|
||||
}
|
||||
|
||||
kill(dialogProc->pid(), SIGKILL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user