Proper error checking for strtol to pid.