spawnAsyncWithFds
fn
bool spawnAsyncWithFds(string workingDirectory, string[] argv, string[] envp, glib.types.SpawnFlags flags, glib.types.SpawnChildSetupFunc childSetup, out glib.types.Pid childPid, int stdinFd, int stdoutFd, int stderrFd)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 | 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 |
flags | flags from #GSpawnFlags |
childSetup | function to run in the child just before exec() |
childPid | return location for child process ID, or null |
stdinFd | file descriptor to use for child's stdin, or -1 |
stdoutFd | file descriptor to use for child's stdout, or -1 |
stderrFd | file descriptor to use for child's stderr, or -1 |
Returns
true on success, false if an error was set
Throws
[ErrorWrap]