child's current working directory, or null to inherit parent's
child's argument vector, which must be non-empty and null-terminated
child's environment, or null to inherit parent's
flags from GLib.SpawnFlags
function to run in the child just before exec()
true on success, false if an error was set
Executes a child synchronously (waits for the child to exit before returning).
All output from the child is stored in
standard_outputandstandard_error, if those parameters are non-null. Note that you must set the GLib.SpawnFlags.STDOUT_TO_DEV_NULL and GLib.SpawnFlags.STDERR_TO_DEV_NULL flags when passingnullforstandard_outputandstandard_error.If
wait_statusis non-null, the platform-specific status of the child is stored there; see the documentation ofg_spawn_check_wait_status()for how to use and interpret this. On Unix platforms, note that it is usually not equal to the integer passed toexit()or returned frommain().Note that it is invalid to pass GLib.SpawnFlags.DO_NOT_REAP_CHILD in
flags, and on POSIX platforms, the same restrictions as forg_child_watch_source_new()apply.If an error occurs, no data is returned in
standard_output,standard_error, orwait_status.This function calls
g_spawn_async_with_pipes()internally; see that function for full details on the other parameters and details on how these functions work on Windows.