Struct Process

Subprocess handler

struct Process ;

Do not create direct instances of this struct. Use ProcessManager.alloc instead.

Fields

NameTypeDescription
stdIO ReactorFD[3]Parent side end of standard streams

Properties

NameTypeDescription
pid[get] intReturns the pid of the child.

Methods

NameDescription
isRunning Test whether the child process is still running
kill Send the process a signal
redirectErrToOut Redirect stderr to stdout
redirectIO Redirect a standard IO for the child to an FD
redirectIO Redirect a standard IO for the child to a pipe
run Run the child with the given arguments.
wait Suspend fiber until the child process finishes

Enums

NameDescription
StdIO The three IO streams that can be redirected