Nicolas Cannasse 18 years ago
parent
commit
5a77b436b8
1 changed files with 5 additions and 0 deletions
  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;