瀏覽代碼

Don't wait() for process; communicate() deals with that

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@40169 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 15 年之前
父節點
當前提交
e908046235
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      gui/wxpython/gui_modules/gcmd.py

+ 2 - 2
gui/wxpython/gui_modules/gcmd.py

@@ -569,10 +569,10 @@ def RunCommand(prog, flags = "", overwrite = False, quiet = False, verbose = Fal
         ps.stdin.write(stdin)
         ps.stdin.close()
         ps.stdin = None
-
-    ret = ps.wait()
     
     stdout, stderr = ps.communicate()
+
+    ret = ps.returncode
         
     if ret != 0 and parent:
         e = CmdError(cmd = prog,