|
|
@@ -37,7 +37,7 @@ local function spawnShell(fin,fout) |
|
|
|
io.input(fin) |
|
|
|
io.output(fout):setvbuf("no") |
|
|
|
print(_OSVERSION.." - "..tostring(math.floor(computer.totalMemory()/1024)).."K RAM") |
|
|
|
return os.spawn(shell.interactive, "shell: "..tostring(fin)) |
|
|
|
return os.spawn(function() local w,r = pcall(shell.interactive) if not w then syslog(r) end end, "shell: "..tostring(fin)) |
|
|
|
end |
|
|
|
|
|
|
|
local function allocate() |
|
|
@@ -77,3 +77,4 @@ function stop() |
|
|
|
os.kill(basepid) |
|
|
|
basepid = nil |
|
|
|
end |
|
|
|
return {start=start,stop=stop} |