Die if we get errors from the tty.

This commit is contained in:
phk 1995-10-06 15:32:36 +00:00
parent a4d1bd3102
commit 97752ac241

View File

@ -141,9 +141,11 @@ tipout()
sigblock(sigmask(SIGTERM));
intTERM();
/*NOTREACHED*/
} else {
printf("%d %d\r",cnt,errno);
fflush(stdout);
} else if (cnt < 0) {
kill(getppid(),SIGUSR1);
sigblock(sigmask(SIGTERM));
intTERM();
/*NOTREACHED*/
}
continue;
}