Fix resuming from Ctrl+Z/SIGTSTP (Gentoo bug #348110)