From df339bfc0df612e3283cc113e47b376d09943e32 Mon Sep 17 00:00:00 2001 From: cinder <> Date: Fri, 10 May 2024 23:52:32 -0700 Subject: [PATCH] fix crash in kitn.createThread --- src/kernel/04_environment.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/04_environment.lua b/src/kernel/04_environment.lua index c814fd7..34b4bc5 100644 --- a/src/kernel/04_environment.lua +++ b/src/kernel/04_environment.lua @@ -9,7 +9,7 @@ given : ]] -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