[GRASS-SVN] r47937 - grass/trunk/lib/db/dbmi_client

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 29 07:45:37 EDT 2011


Author: mmetz
Date: 2011-08-29 04:45:37 -0700 (Mon, 29 Aug 2011)
New Revision: 47937

Modified:
   grass/trunk/lib/db/dbmi_client/shutdown.c
Log:
db_shutdown_driver(): always use G_wait()

Modified: grass/trunk/lib/db/dbmi_client/shutdown.c
===================================================================
--- grass/trunk/lib/db/dbmi_client/shutdown.c	2011-08-29 09:27:37 UTC (rev 47936)
+++ grass/trunk/lib/db/dbmi_client/shutdown.c	2011-08-29 11:45:37 UTC (rev 47937)
@@ -58,14 +58,8 @@
     /* wait for the driver to finish */
     status = -1;
 
-#ifdef __MINGW32__
     /* convert status according to return code of G_wait() */
     status = G_wait(driver->pid) == -1 ? -1 : 0;
-#else
-    /* TODO: Should not be here waitpid() ? */
-    while ((pid = wait(&status)) > 0 && pid != driver->pid) {
-    }
-#endif
 
     driver->pid = 0;
 



More information about the grass-commit mailing list