diff options
author | hm <hm@FreeBSD.org> | 2001-06-05 15:16:45 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2001-06-05 15:16:45 +0000 |
commit | 438bdfaaa17b231df30c91c854cf30fa4c24abd3 (patch) | |
tree | 97298d546a357c7da60841e7ac9afc51b0a92e05 /usr.sbin/i4b | |
parent | 1d5b78c6a8aaeb9cdf0dc5c66ccf07c4e6cc74f7 (diff) | |
download | FreeBSD-src-438bdfaaa17b231df30c91c854cf30fa4c24abd3.zip FreeBSD-src-438bdfaaa17b231df30c91c854cf30fa4c24abd3.tar.gz |
PR: bin/26817
Submitted by: Clement Ballabriga <clement@asso.ups-tlse.fr>
Reviewed by: hm
Check for read errors from the controlling tty when in fullscreen mode.
Diffstat (limited to 'usr.sbin/i4b')
-rw-r--r-- | usr.sbin/i4b/isdnd/main.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/i4b/isdnd/main.c b/usr.sbin/i4b/isdnd/main.c index 9329c52..b927d15 100644 --- a/usr.sbin/i4b/isdnd/main.c +++ b/usr.sbin/i4b/isdnd/main.c @@ -29,7 +29,7 @@ * * $FreeBSD$ * - * last edit-date: [Wed May 2 10:05:55 2001] + * last edit-date: [Tue Jun 5 17:06:20 2001] * *---------------------------------------------------------------------------*/ @@ -609,7 +609,13 @@ static void kbdrdhdl(void) { int ch = getch(); - + + if(ch == ERR) + { + log(LL_ERR, "kbdrdhdl: ERROR, read error on controlling tty, errno = %d!", errno); + error_exit(1, "kbdrdhdl: ERROR, read error on controlling tty, errno = %d!", errno); + } + switch(ch) { case 0x0c: /* control L */ |