Process

Represents a running process.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

forceKill
void forceKill()

Terminate the process immediately.

kill
void kill(int signal)

Kill the process.

kill
void kill()

Kill the process.

opCast
bool opCast()

Check whether this is a valid process handle. The process may have exited already.

wait
int wait()
Nullable!int wait(Duration timeout)

Wait for the process to exit, allowing other fibers to continue in the meantime.

waitOrForceKill
int waitOrForceKill(Duration timeout)

Wait for the process to exit until a timeout is reached. If the process doesn't exit before the timeout, force kill it.

Properties

exited
bool exited [@property getter]

Whether the process has exited.

pid
int pid [@property getter]

An operating system handle to the process.

Meta