Process.kill

void kill() @trusted

Kills the process forcefully (SIGKILL on Unix).

Throws

AccessDenied if insufficient permissions.

NoSuchProcess if the process no longer exists.