diff options
author | Hellmuth Michaelis <hm@FreeBSD.org> | 2001-06-05 15:16:45 +0000 |
---|---|---|
committer | Hellmuth Michaelis <hm@FreeBSD.org> | 2001-06-05 15:16:45 +0000 |
commit | 40390c07190d1f76bec631337c38cf25a8c4e66c (patch) | |
tree | ef237e237db0e96311ee87e3abdf4aa2b0164273 /usr.sbin/i4b | |
parent | 72155f03b67c71504510364da9bb035a51b175df (diff) | |
download | src-40390c07190d1f76bec631337c38cf25a8c4e66c.tar.gz src-40390c07190d1f76bec631337c38cf25a8c4e66c.zip |
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.
Notes
Notes:
svn path=/head/; revision=77766
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 9329c5271b5d..b927d15b827a 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 */ |