fix an error when zombie processes don't need to be killed
This commit is contained in:
parent
6737421e58
commit
111502579f
2
rc.lua
2
rc.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user