made forked programs output their end result to the log

This commit is contained in:
Izaya 2017-09-23 19:08:10 +10:00 committed by Izaya
parent 690101d41c
commit 92a8066890

View File

@ -267,5 +267,5 @@ end
function srun(fn,...)
local lf = loadfile(fn)
if not lf then return false, "cannot load file" end
spawn(fn,print(pcall(lf,...)))
spawn(fn,log(pcall(lf,...)))
end