diff options
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 5 |
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); |