spawnAsyncWithPipes

fnbool spawnAsyncWithPipes(string workingDirectory, string[] argv, string[] envp, glib.types.SpawnFlags flags, glib.types.SpawnChildSetupFunc childSetup, out glib.types.Pid childPid, out int standardInput, out int standardOutput, out int standardError)

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
standardInputreturn location for file descriptor to write to child's stdin, or null
standardOutputreturn location for file descriptor to read child's stdout, or null
standardErrorreturn location for file descriptor to read child's stderr, or null

Returns

true on success, false if an error was set

Throws

[ErrorWrap]