spawnAsyncWithFds

Executes a child program asynchronously.

Identical to glib.global.spawnAsyncWithPipesAndFds but with n_fds set to zero, so no FD assignments are used.

Parameters

workingDirectory string

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

argv string[]

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

envp string[]

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

flags glib.types.SpawnFlags

flags from #GSpawnFlags

childSetup glib.types.SpawnChildSetupFunc

function to run in the child just before exec()

childPid glib.types.Pid

return location for child process ID, or null

stdinFd int

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

stdoutFd int

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

stderrFd int

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

Return Value

Type: bool

true on success, false if an error was set