From d60c10baa03fa0a1dc29d9564ee02e4b6cf2442f Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Sat, 23 Sep 2017 19:08:10 +1000 Subject: [PATCH] made forked programs output their end result to the log --- modules/lib/fs.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lib/fs.lua b/modules/lib/fs.lua index 8e1063f..d5cd39e 100644 --- a/modules/lib/fs.lua +++ b/modules/lib/fs.lua @@ -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