Fix logic error in process_exited(s::ProcessChain)
Merge pull request #4791 from JuliaLang/cjh/process_exited_logic

Fix logic error in process_exited(s::ProcessChain)