Spawn.asyncWithFds

Identical to g_spawn_async_with_pipes_and_fds() but with n_fds set to zero, so no FD assignments are used.

class Spawn
static
bool
asyncWithFds

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

envp string[]

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

flags GSpawnFlags

flags from #GSpawnFlags

childSetup GSpawnChildSetupFunc

function to run in the child just before exec()

userData void*

user data for @child_setup

childPid GPid

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

Throws

GException on failure.

Meta

Since

2.58