validPid renamed to valid_pid