returns true if the given pid is still running.
pid
bool isRunning(int? pid) { if (Settings().isWindows) { return _windowsIsrunning(pid); } else { return _linuxisRunning(pid); } }