about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-20 20:52:13 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-20 20:52:13 +0000
commit249148d765d846f35d9e3805a89f978892c74208 (patch)
treed99b2f9dd7078240db9b925884c5ebabcad16c3a /Src
parent06e22c93708a79e38477394501d8505489bd8685 (diff)
downloadzsh-249148d765d846f35d9e3805a89f978892c74208.tar.gz
zsh-249148d765d846f35d9e3805a89f978892c74208.tar.xz
zsh-249148d765d846f35d9e3805a89f978892c74208.zip
tidy up from 26625
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 340ceb857..e66d5bbf9 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1442,14 +1442,13 @@ settyinfo(struct ttyinfo *ti)
 #  ifndef TCSADRAIN
 #   define TCSADRAIN 1	/* XXX Princeton's include files are screwed up */
 #  endif
-	tcsetattr(SHTTY, TCSADRAIN, &ti->tio);
 	while (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1 && errno == EINTR)
 	    ;
 # else
-	ioctl(SHTTY, TCSETS, &ti->tio);
 	while (ioctl(SHTTY, TCSETS, &ti->tio) == -1 && errno == EINTR)
+	    ;
 # endif
-	/*	zerr("settyinfo: %e",errno)*/ ;
+	/*	zerr("settyinfo: %e",errno);*/
 #else
 # ifdef HAVE_TERMIO_H
 	ioctl(SHTTY, TCSETA, &ti->tio);