Module dglib.Spawn
Constructor Summary |
---|
Methods Summary | |
---|---|
protected public static bit |
asyncWithPipes(String workingDirectory, char** argv, char** envp, SpawnFlags flags, GSpawnChildSetupFunc child_setup, gpointer user_data, GPid child_pid, gint* standard_input, gint* standard_output, gint* standard_error) Flags passed to gSpawnSync(), gSpawnAsync() and gSpawnAsyncWithPipes(). |
static bit |
async(String working_directory, char argv, char envp, SpawnFlags flags, GSpawnChildSetupFunc child_setup, gpointer user_data, GPid* child_pid) See gSpawnAsyncWithPipes() for a full description; this function simply calls the gSpawnAsyncWithPipes() without any pipes. |
static bit |
sync(String working_directory, char argv, char envp, SpawnFlags flags, GSpawnChildSetupFunc child_setup, gpointer user_data, String standard_output, String standard_error, gint exit_status) Executes a child synchronously (waits for the child to exit before returning). |
static bit |
commandLineAsync(String command_line) A simple version of gSpawnAsync() that parses a command line with gShellParseArgv() and passes it to gSpawnAsync(). |
static bit |
commandLineSync(String command_line, String standard_output, String standard_error, gint exit_status) A simple version of gSpawnSync() with little-used parameters removed, taking a command line instead of an argument vector. |
static void |
closePid(GPid pid) On some platforms, notably WIN32, the GPid type represents a resource which must be closed to prevent resource leaking. |