exec

Re-executes the program.

Filters out any --set twitch.* keygen terminal wizard flags from the arguments originally passed to the program, then calls execvp.

On Windows, the behaviour is faked using spawnProcess.

@safe @system
Pid
exec
(
string[] args
,
const uint numReexecs
,
const string[] channels
)

Parameters

args string[]

Arguments passed to the program.

numReexecs uint

How many reexecutions have been done so far.

channels string[]

A snapshot of the channels currently joined, to pass as override to the new execution via an --internal-channel-override getopt flag.

Return Value

Type: Pid

On Windows, a Pid of the spawned process. On Posix, it either exits the program or it throws.

Throws

On Posix, ReturnValueException on failure. On Windows, ProcessException on failure.