spawnAsyncWithFds

fnbool 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

workingDirectorychild's current working directory, or null to inherit parent's, in the GLib file name encoding
argvchild's argument vector, in the GLib file name encoding; it must be non-empty and null-terminated
envpchild's environment, or null to inherit parent's, in the GLib file name encoding
flagsflags from #GSpawnFlags
childSetupfunction to run in the child just before exec()
childPidreturn location for child process ID, or null
stdinFdfile descriptor to use for child's stdin, or -1
stdoutFdfile descriptor to use for child's stdout, or -1
stderrFdfile descriptor to use for child's stderr, or -1

Returns

true on success, false if an error was set

Throws

[ErrorWrap]