[GRASS-SVN] r40197 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jan 2 10:11:06 EST 2010


Author: martinl
Date: 2010-01-02 10:11:06 -0500 (Sat, 02 Jan 2010)
New Revision: 40197

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
Log:
glynn: Don't wait() for process; communicate() deals with that
     (merge r40169 from trunk)


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2010-01-02 15:08:49 UTC (rev 40196)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/gcmd.py	2010-01-02 15:11:06 UTC (rev 40197)
@@ -594,10 +594,10 @@
         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,



More information about the grass-commit mailing list