fix process running check to use proper return code check
Merge pull request #5135 from bparees/process_running_check

Merged by openshift-bot