GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-cf81aadc39
defs/spawn.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int G_spawn (const char *command,...)
 Spawn new process based on command. More...
 
int G_vspawn_ex (const char *command, const char **args)
 Spawn new process based on command. More...
 
int G_spawn_ex (const char *command,...)
 Spawn new process based on command. More...
 
int G_wait (int i_pid)
 

Function Documentation

◆ G_spawn()

int G_spawn ( const char *  command,
  ... 
)

Spawn new process based on command.

Parameters
[in]command
Returns
-1 on error
process status on success

Definition at line 919 of file spawn.c.

References G_spawn_ex(), MAX_ARGS, NULL, SF_ARGVEC, SF_SIGNAL, SSA_BLOCK, SSA_IGNORE, and SST_PRE.

◆ G_spawn_ex()

int G_spawn_ex ( const char *  command,
  ... 
)

Spawn new process based on command.

This is a more advanced version of G_spawn().

Parameters
[in]command
Returns
-1 on error
process status on success

Definition at line 897 of file spawn.c.

Referenced by G_spawn().

◆ G_vspawn_ex()

int G_vspawn_ex ( const char *  command,
const char **  args 
)

Spawn new process based on command.

This is a more advanced version of G_spawn().

Parameters
[in]command
[in]argsarguments
Returns
-1 on error
process status on success

Definition at line 876 of file spawn.c.

◆ G_wait()

int G_wait ( int  i_pid)

Definition at line 949 of file spawn.c.

References FALSE.

Referenced by db_shutdown_driver(), and G_popen_close().