Explorar el Código

[python] wait for process exit in sys.io.Process.exitCode (see #4083)

Dan Korostelev hace 10 años
padre
commit
e4f83a650e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      std/python/_std/sys/io/Process.hx

+ 1 - 1
std/python/_std/sys/io/Process.hx

@@ -49,7 +49,7 @@ class Process {
 		return p.pid;
 	}
 	public function exitCode() : Int {
-		return p.returncode;
+		return p.wait();
 	}
 	public function close() : Void {
 		p.terminate();