From 7dee940cf2cce8bdf2e5bdb9fc752f0c6782de85 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Tue, 5 Sep 2017 19:07:13 +1000 Subject: [PATCH] made spawn() return the pid of the spawned process --- modules/base/header.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/base/header.lua b/modules/base/header.lua index 45688c8..ac8003e 100644 --- a/modules/base/header.lua +++ b/modules/base/header.lua @@ -24,6 +24,7 @@ do -- so local works tT[nP].u,tT[nP].ep,tT[nP].e = "superuser",1,{["PWD"]="/boot",["PATH"]="/boot/exec:."} end nP = nP + 1 + return nP-1 end function _G.sched() _G.sched = nil