fix an error when zombie processes don't need to be killed

This commit is contained in:
Izaya 2021-11-11 08:15:36 +11:00
parent 6737421e58
commit 111502579f

2
rc.lua
View File

@ -99,8 +99,10 @@ awful.layout.layouts = {
function restart() function restart()
for k,v in pairs(zombies) do for k,v in pairs(zombies) do
if type(v) == "number" then
awful.spawn.easy_async(string.format("kill %d",v)) awful.spawn.easy_async(string.format("kill %d",v))
end end
end
awesome.restart() awesome.restart()
end end
-- {{{ Menu -- {{{ Menu