Subprocess


Description:

[ CCode ( has_construct_function = false ) ]
public Subprocess (SubprocessFlags flags, ...) throws Error

Create a new process with the given flags and varargs argument list.

By default, matching the spawn_async defaults, the child's stdin will be set to the system null device, and stdout/stderr will be inherited from the parent. You can use flags to control this behavior.

The argument list must be terminated with null.

Parameters:

flags

flags that define the behaviour of the subprocess

...

more commandline arguments, followed by null

argv0

first commandline argument to pass to the subprocess

error

return location for an error, or null

Returns:

A newly created Subprocess, or null on error (and throws will be set)