isRunning method

bool isRunning(
  1. int? pid
)

returns true if the given pid is still running.

Implementation

bool isRunning(int? pid) {
  if (Settings().isWindows) {
    return _windowsIsrunning(pid);
  } else {
    return _linuxisRunning(pid);
  }
}