about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-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