fix(nix-monitor): kill both children and parent job, just to be safe
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user