spawn_async_with_fds


Description:

[ Version ( since = "2.58" ) ]
public bool spawn_async_with_fds (string? working_directory, string[] argv, string[]? envp, SpawnFlags _flags, SpawnChildSetupFunc? child_setup, out Pid child_pid = null, int stdin_fd = -1, int stdout_fd = -1, int stderr_fd = -1) throws SpawnError

Executes a child program asynchronously.

Identical to spawn_async_with_pipes_and_fds but with `n_fds` set to zero, so no FD assignments are used.

Parameters:

working_directory

child's current working directory, or null to inherit parent's, in the GLib file name encoding

argv

child's argument vector, in the GLib file name encoding; it must be non-empty and null-terminated

envp

child's environment, or null to inherit parent's, in the GLib file name encoding

child_setup

function to run in the child just before `exec()`

child_pid

return location for child process ID, or null

stdin_fd

file descriptor to use for child's stdin, or `-1`

stdout_fd

file descriptor to use for child's stdout, or `-1`

stderr_fd

file descriptor to use for child's stderr, or `-1`

flags

flags from SpawnFlags

user_data

user data for child_setup

Returns:

true on success, false if an error was set


Namespace: GLib.Process
Package: glib-2.0