[GRASS-user] Database driver problem

Glynn Clements glynn at gclements.plus.com
Fri Oct 2 22:29:28 EDT 2009


Hamish wrote:

> should this be using G_spawn() not _spawnl() now that we have a few
> G_spawn() options to choose from?

No. G_spawn() uses the _P_WAIT flag, while the DBMI requires
_P_NOWAIT.

G_spawn_ex() supports background processes, but it doesn't support
redirecting descriptors on Windows. The only way to fix that is to
re-write it to use CreateProcess() rather than spawnvpe(); Python's
subprocess module would probably be a useful source of clues.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-user mailing list