瀏覽代碼

db_shutdown_driver(): always use G_wait()

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47937 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 13 年之前
父節點
當前提交
5f773b6869
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      lib/db/dbmi_client/shutdown.c

+ 0 - 6
lib/db/dbmi_client/shutdown.c

@@ -58,14 +58,8 @@ int db_shutdown_driver(dbDriver * driver)
     /* wait for the driver to finish */
     /* wait for the driver to finish */
     status = -1;
     status = -1;
 
 
-#ifdef __MINGW32__
     /* convert status according to return code of G_wait() */
     /* convert status according to return code of G_wait() */
     status = G_wait(driver->pid) == -1 ? -1 : 0;
     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;
     driver->pid = 0;