Process.this

this(int pid) @safe

Creates a Process object for the given PID.

Parameters

pidThe process ID.

Throws

NoSuchProcess if the process doesn't exist.

Example:

auto proc = new Process(1234);
writeln("Process name: ", proc.name());