Browse Source

added getPid

Nicolas Cannasse 18 years ago
parent
commit
53931e576a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      std/neko/io/Process.hx

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

@@ -100,11 +100,16 @@ class Process {
 		stderr = new Stdout(p,false);
 	}
 
+	public function getPid() : Int {
+		return _pid(p);
+	}
+
 	public function exitCode() : Int {
 		return _exit(p);
 	}
 
 	static var _run = neko.Lib.load("std","process_run",2);
 	static var _exit = neko.Lib.load("std","process_exit",1);
+	static var _pid = neko.Lib.load("std","process_pid",1);
 
 }