Don't do a protected call for the daemon commands

The errors produced by the ifcore module methods are important and thus
should not be ignored.
This commit is contained in:
Lefteris Chatzimparmpas 2012-02-21 17:49:38 +01:00
parent 8b0e8943e3
commit 51da675056

View File

@ -60,6 +60,6 @@ function become_daemon(interval, commands, nochdir, noclose)
if noclose == nil then noclose = false end
ifsys.daemon(nochdir, noclose)
repeat
pcall(commands)
commands()
until ifsys.sleep(interval) ~= 0
end