and defers the restoring until after wakeup (cf signals.c).
Now I realize that rlwrap doesn't restore terminal attributes after a SIGTSTP, and will leave them modified when killed by a fatal signal, so this is no better than not restoring the terminal al all.