spawn_async


Description:

[ Version ( since = "0.48" ) ]
public void spawn_async (PtyFlags pty_flags, string? working_directory, string[] argv, string[]? envv, SpawnFlags spawn_flags, owned SpawnChildSetupFunc? child_setup, int timeout, Cancellable? cancellable, TerminalSpawnAsyncCallback? callback)

A convenience function that wraps creating the Pty and spawning the child process on it.

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 Terminal

pty_flags

flags from PtyFlags

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 TerminalSpawnAsyncCallback, 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, or null




2022 vala-language.org