isProcessRunning method

bool isProcessRunning(
  1. int pid
)

Checks if a process with the specified ID is running.

pid - Process identifier to check Returns true if the process is running, false otherwise.

Implementation

bool isProcessRunning(int pid) {
  return _runningProcesses.containsKey(pid);
}