[GRASS-dev] [GRASS GIS] #2775: Hangs when closing db drivers
GRASS GIS
trac at osgeo.org
Wed Oct 21 12:57:48 PDT 2015
#2775: Hangs when closing db drivers
----------------------+-------------------------
Reporter: rblazek | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone:
Component: Database | Version: unspecified
Keywords: | CPU: Unspecified
Platform: Linux |
----------------------+-------------------------
Module hangs if db drivers are not closed in revers order to the order in
which were opened. For example open driver A, open driver B, close driver
A hangs forever on waitpid() in G_wait() because driver process does not
exit when its stdin is closed in db_shutdown_driver() by
fclose(driver->send). fclose() returns 0 (ok). The driver is probably
hanging on db!__recv_procnum() even if stdin was closed.
It is fixed by enabling procedure DB_PROC_SHUTDOWN_DRIVER like it is used
on Window. Patch attached.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2775>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list