theprocess.utils

Various utilities related to processes

Members

Functions

getCurrentUser
SystemUser getCurrentUser()

Return the SystemUser entry for the current effective user.

getSystemUser
Nullable!SystemUser getSystemUser(string username)

Look up a system user by name.

isCurrentUser
bool isCurrentUser(string username)

Check whether username matches the current effective user.

isProcessRunning
bool isProcessRunning(int pid)

Check whether a process with the given PID is currently running.

isProcessRunning
bool isProcessRunning(Pid pid)

Check whether a process is currently running.

resolveProgram
Nullable!Path resolveProgram(string program)

Resolve program name according to system path

systemUserExists
bool systemUserExists(string username)

Check if system user with specified name exists

Structs

SystemUser
struct SystemUser

D-friendly representation of a system user (passwd entry).

Meta