Nicolas Cannasse 18 年之前
父节点
当前提交
5a77b436b8
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      std/neko/io/Process.hx

+ 5 - 0
std/neko/io/Process.hx

@@ -32,6 +32,11 @@ private class Stdin extends neko.io.Output {
 		this.p = p;
 	}
 
+	public override function close() {
+		super.close();
+		_stdin_close(p);
+	}
+
 	public override function writeChar(c) {
 		if( writeBytes(Std.chr(c),0,1) == 0 )
 			throw Error.Blocked;