Make setpgid() interruptible.