This is a fix for a problem where if we run out of available pids, get_pid will hang the system while it searches through the tasks for an available pid forever. Thanks, Paul Larson