fix(nix-monitor): kill both children and parent job, just to be safe

This commit is contained in:
avivbintangaringga
2026-07-15 22:54:33 +07:00
parent 5dfc59cadb
commit a1d9a0c4bb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ function killWithPidFile(file)
local pid = noctalia.string.trim(noctalia.readFile(file))
if type(pid) == "string" and pid ~= "" then
noctalia.runAsync(`pkill -9 -P {pid}`)
noctalia.runAsync(`pkill -9 -P {pid} && kill -9 {pid}`)
end
noctalia.removeFile(file)
end