mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 19:25:20 -04:00
Merge pull request #1095 from mpmxyz/patch-2
Fix: standard io streams being closable
This commit is contained in:
commit
0b000b75bf
@ -60,5 +60,9 @@ io.stderr = buffer.new("w", stderrStream)
|
||||
io.stdout:setvbuf("no")
|
||||
io.stderr:setvbuf("no")
|
||||
|
||||
io.stdin.close = stdinStream.close
|
||||
io.stdout.close = stdinStream.close
|
||||
io.stderr.close = stdinStream.close
|
||||
|
||||
io.input(io.stdin)
|
||||
io.output(io.stdout)
|
||||
|
Loading…
x
Reference in New Issue
Block a user