From 434ded340d7c26d174c861ae024af7591b92c9b6 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sun, 30 Oct 1994 01:43:09 +0000 Subject: Fix hang on exit: needs to restore SIGIO reaction _before_ tcsetattr, because tcsetattr cause SIGIO in wakeup --- usr.bin/window/wwend.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/window/wwend.c') diff --git a/usr.bin/window/wwend.c b/usr.bin/window/wwend.c index 9586f14b7333..b984d2d20c30 100644 --- a/usr.bin/window/wwend.c +++ b/usr.bin/window/wwend.c @@ -38,6 +38,7 @@ static char sccsid[] = "@(#)wwend.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ +#include #include "ww.h" #include "tt.h" @@ -49,6 +50,7 @@ wwend(exit) wwdocheckpoint = 0; } xxend(); + (void) signal(SIGIO, SIG_DFL); (void) wwsettty(0, &wwoldtty); #ifdef TERMINFO if (exit) -- cgit v1.3