fix crash in kitn.createThread

main
cinder 6 months ago
parent c146f860cc
commit df339bfc0d

@ -9,7 +9,7 @@ given <https://ocdoc.cil.li/tutorial:custom_oses#what_s_available>:
]] ]]
envBase._OSVERSION = 'kitn 0.2.0-beta.4' --prefer [openloader, openos] "$name $ver" over plan9k "$name/$ver" envBase._OSVERSION = 'kitn 0.2.1-beta.4' --prefer [openloader, openos] "$name $ver" over plan9k "$name/$ver"
envBase.kitn = {} envBase.kitn = {}
envBase._G, envBase.load = nil envBase._G, envBase.load = nil
@ -155,7 +155,7 @@ function fillEnv(proc, uenv)
local co = co_create(fn) local co = co_create(fn)
local info = processes[proc] local info = processes[proc]
info[#info+1] = co --add it as a thread of the current process info[#info+1] = co --add it as a thread of the current process
runnable[co] = pack(...) runqueue[co] = pack(...)
return co return co
end end

Loading…
Cancel
Save