Die if we get errors from the tty.
This commit is contained in:
parent
50f5714bab
commit
662d0b8c51
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=11281
@ -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