fix an error when zombie processes don't need to be killed
This commit is contained in:
parent
6737421e58
commit
111502579f
4
rc.lua
4
rc.lua
@ -99,7 +99,9 @@ awful.layout.layouts = {
|
|||||||
|
|
||||||
function restart()
|
function restart()
|
||||||
for k,v in pairs(zombies) do
|
for k,v in pairs(zombies) do
|
||||||
awful.spawn.easy_async(string.format("kill %d",v))
|
if type(v) == "number" then
|
||||||
|
awful.spawn.easy_async(string.format("kill %d",v))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
awesome.restart()
|
awesome.restart()
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user