[GRASS5] question on D library/functions

Glynn Clements glynn.clements at virgin.net
Thu Feb 21 23:23:22 EST 2002

Andreas Lange wrote:

> What about system() and G_system(), should the modules use always
> use G_system?

G_system() appears to be a work-around for an incorrect implementation
of system().

system() is supposed to ignore SIGINT and SIGQUIT, and block SIGCHLD,
for the duration of the call. The comment at the top of
src/libes/system.c suggests that, on the author's system, that wasn't
the case.

However, one of the things which I intended to do once 5.0 was
released was to eliminate the use of system() (and G_system()) in
favour of a "spawn" construct, which would take individual arguments
as is the case for the exec*() functions.

Glynn Clements <glynn.clements at virgin.net>

More information about the grass-dev mailing list