[GRASS-SVN] r40169 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 1 06:27:31 EST 2010


Author: glynn
Date: 2010-01-01 06:27:30 -0500 (Fri, 01 Jan 2010)
New Revision: 40169

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


Modified: grass/trunk/gui/wxpython/gui_modules/gcmd.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gcmd.py	2009-12-31 06:18:50 UTC (rev 40168)
+++ grass/trunk/gui/wxpython/gui_modules/gcmd.py	2010-01-01 11:27:30 UTC (rev 40169)
@@ -569,10 +569,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