Process.current

Process current() @trusted

Gets a Process object for the current process.

Returns

Process object representing the current process.

Example:

auto proc = Process.current();
writeln("My PID: ", proc.pid());