mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 22:22:00 -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)
|
if (!dialogProc)
|
||||||
return;
|
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);
|
kill(dialogProc->pid(), SIGKILL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user