Hangs when closing db drivers
|Reported by:||rblazek||Owned by:|
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.