This code did not return properly when a process oriented signal was pending. Reported by Wayne Bullaughey <wayneb@…>.