diff --git a/src/init.lua b/src/init.lua index bec30dd..e549403 100644 --- a/src/init.lua +++ b/src/init.lua @@ -157,11 +157,12 @@ function fillEnv(proc, uenv) function ukitn.createProcess(path, ...) checkArg(1, path, 'string') - local env = mirror(envBase) + local env = {} local fn, err = uloadfile(path, nil, env) if not fn then return nil, err end local newProc = co_create(fn) + fillEnv(newProc, env) processes[newProc] = { env = env, parent = proc, path = path } runnable[newProc] = pack(...) return newProc