Process.terminate

void terminate() @trusted

Terminates the process gracefully (SIGTERM on Unix).

Throws

AccessDenied if insufficient permissions.

NoSuchProcess if the process no longer exists.