Deleted Added
full compact
1c1
< /* $Header: /src/pub/tcsh/ed.term.c,v 1.25 2000/11/11 23:03:34 christos Exp $ */
---
> /* $Header: /src/pub/tcsh/ed.term.c,v 1.26 2001/08/06 23:51:09 christos Exp $ */
40c40
< RCSID("$Id: ed.term.c,v 1.25 2000/11/11 23:03:34 christos Exp $")
---
> RCSID("$Id: ed.term.c,v 1.26 2001/08/06 23:51:09 christos Exp $")
568a569,574
> #ifdef __NetBSD__
> #define KLUDGE (errno == ENOTTY && count < 10)
> #else
> #define KLUDGE 0
> #endif
>
569a576
> static int count;
571c578
< for (;;) \
---
> for (count = 0;; count++) \
573,576c580,583
< if (OKERROR(errno)) \
< continue; \
< else \
< return -1; \
---
> if (OKERROR(errno) || KLUDGE) \
> continue; \
> else \
> return -1; \