spawn_async


Description:

[ Version ( since = "0.48" ) ]
public async bool spawn_async (string? working_directory, string[] argv, string[]? envv, SpawnFlags spawn_flags, owned SpawnChildSetupFunc? child_setup, int timeout, Cancellable? cancellable, out Pid child_pid) throws Error

Like spawn_with_fds_async, except that this function does not allow passing file descriptors to the child process.

See spawn_with_fds_async for more information.

Parameters:

this

a Pty

working_directory

the name of a directory the command should start in, or null to use the current working directory

argv

child's argument vector

envv

a list of environment variables to be added to the environment before starting the process, or null

spawn_flags

flags from SpawnFlags

child_setup

an extra child setup function to run in the child just before exec, or null

timeout

a timeout value in ms, -1 for the default timeout, or G_MAXINT to wait indefinitely

cancellable

a Cancellable, or null

callback

a TaskReadyCallback, or null

child_setup_data

user data for child_setup, or null

child_setup_data_destroy

a DestroyNotify for child_setup_data, or null

user_data

user data for callback