Die if we get errors from the tty.

This commit is contained in:
Poul-Henning Kamp 1995-10-06 15:32:36 +00:00
parent 50f5714bab
commit 662d0b8c51
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11281

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;
}