EventDriverProcesses.spawn

Spawn a child process.

Note that if a default signal handler exists for the signal, it will be disabled by using this function.

interface EventDriverProcesses
@safe nothrow
spawn

Parameters

args string[]

The program arguments. First one must be an executable.

stdin ProcessStdinFile

What should be done for stdin. Allows inheritance, piping, nothing or any specific fd. If this results in a Pipe, the PipeFD will be set in the stdin result.

stdout ProcessStdoutFile

See stdin, but also allows redirecting to stderr.

stderr ProcessStderrFile

See stdin, but also allows redirecting to stdout.

env string[string]

The environment variables to spawn the process with.

config ProcessConfig

Special process configurations.

working_dir string

What to set the working dir in the process.

Return Value

Type: Process

Returns a Process struct containing the ProcessID and whatever pipes have been adopted for stdin, stdout and stderr.

Meta