aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/window/wwinit.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-10-30 01:43:09 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-10-30 01:43:09 +0000
commit434ded340d7c26d174c861ae024af7591b92c9b6 (patch)
tree833ea2c68518a9283a5de1e1056a9f8917e97997 /usr.bin/window/wwinit.c
parent339b10f15d40cf8f33423d6a928fa49689f67545 (diff)
downloadsrc-434ded340d7c26d174c861ae024af7591b92c9b6.tar.gz
src-434ded340d7c26d174c861ae024af7591b92c9b6.zip
Fix hang on exit: needs to restore SIGIO reaction _before_
tcsetattr, because tcsetattr cause SIGIO in wakeup
Notes
Notes: svn path=/head/; revision=4001
Diffstat (limited to 'usr.bin/window/wwinit.c')
-rw-r--r--usr.bin/window/wwinit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/window/wwinit.c b/usr.bin/window/wwinit.c
index 596f1a2252ed..4e4d5dad1239 100644
--- a/usr.bin/window/wwinit.c
+++ b/usr.bin/window/wwinit.c
@@ -322,8 +322,8 @@ bad:
* Don't bother to free storage. We're supposed
* to exit when wwinit fails anyway.
*/
- (void) wwsettty(0, &wwoldtty);
(void) signal(SIGIO, SIG_DFL);
+ (void) wwsettty(0, &wwoldtty);
(void) sigsetmask(s);
return -1;
}