isProcessRunning method
Returns true a the process with the given name
is currently running.
Implementation
bool isProcessRunning(String name) {
for (final pd in getProcesses()) {
if (pd.name == name) {
return true;
}
}
return false;
}