Die if we get errors from the tty.
This commit is contained in:
parent
a4d1bd3102
commit
97752ac241
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user