Posted 13 August 2012 - 04:19 AM
Hi there, ran into a little problem with coroutines:
this does not run the file. the "S" gets printed the "E" does not and the coroutine status winds up being "dead".
Any ideas?
local function host(path,...)
print("S")
local p1,p2=os.run( _G, path, unpack(arg))
print("E")
end
local co = coroutine.create(host)
coroutine.resume(co,"mtshell")
print(coroutine.status(co))
this does not run the file. the "S" gets printed the "E" does not and the coroutine status winds up being "dead".
Any ideas?