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._G, envBase.load = nil
@ -155,7 +155,7 @@ function fillEnv(proc, uenv)
local co = co_create(fn)
local info = processes[proc]
info[#info+1] = co --add it as a thread of the current process
runnable[co] = pack(...)
runqueue[co] = pack(...)
return co
end

Loading…
Cancel
Save