More tty-specific hangup handling. There's still doubt about the origiinal testing, but not about testing after "post bitrot repair", if there was any. That wasn't useful because the new code was accidentally suppressed by testing a misspelled macro. when deciding whether to include it.