SystemProcessRunner class final

The production ProcessRunner.

While child processes run, it watches SIGINT and SIGTERM so dpk never exits before its children. SIGTERM is forwarded to every child. SIGINT already reaches children in the terminal's process group. Once the children exit, dpk exits with 128 + signal.

Implemented types

Constructors

SystemProcessRunner(Console console)

Properties

console → Console
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<ProcessResult>
Runs a process to completion and captures its output.
override
runInteractive(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<int>
Runs a process with its output going to the user, and returns its exit code. When the console is the real stdio, the process inherits stdin, stdout, and stderr.
override
start(String executable, List<String> arguments, {String? workingDirectory, Map<String, String>? environment}) → Future<Process>
Starts a process with piped streams, for callers that format its output.
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited