anr: add a note for no pid dialogs

This commit is contained in:
Vaxry
2025-02-21 16:58:17 +00:00
parent 2cfa5d2408
commit 0e24f9c0d5

View File

@@ -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);
}