about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-03-02 10:21:37 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-03-02 10:21:37 +0000
commit4dbe63360d153a5594c676d5f68db36c1e976a40 (patch)
treeec704702eb123f53601b505af96cce4bb0bc57e1 /Src/utils.c
parent535afe3b2a95afe7d9de5f95abc903119156ceee (diff)
downloadzsh-4dbe63360d153a5594c676d5f68db36c1e976a40.tar.gz
zsh-4dbe63360d153a5594c676d5f68db36c1e976a40.tar.xz
zsh-4dbe63360d153a5594c676d5f68db36c1e976a40.zip
Lionel Flandrin: 26625: inopportune interrupt wrecked terminal set up
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index d93dadfd0..3696571bb 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1436,10 +1436,11 @@ settyinfo(struct ttyinfo *ti)
 #   define TCSADRAIN 1	/* XXX Princeton's include files are screwed up */
 #  endif
 	tcsetattr(SHTTY, TCSADRAIN, &ti->tio);
-    /* if (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1) */
+	while (tcsetattr(SHTTY, TCSADRAIN, &ti->tio) == -1 && errno == EINTR)
+	    ;
 # else
 	ioctl(SHTTY, TCSETS, &ti->tio);
-    /* if (ioctl(SHTTY, TCSETS, &ti->tio) == -1) */
+	while (ioctl(SHTTY, TCSETS, &ti->tio) == -1 && errno == EINTR)
 # endif
 	/*	zerr("settyinfo: %e",errno)*/ ;
 #else