pidExists

fnbool pidExists(int pid) @trusted

Checks if a process with the given PID exists.

Parameters

pidThe process ID to check.

Returns

true if the process exists, false otherwise.