summaryrefslogtreecommitdiffstats
path: root/usr.sbin/i4b/isdnd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/i4b/isdnd/main.c')
-rw-r--r--usr.sbin/i4b/isdnd/main.c10
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 */
OpenPOWER on IntegriCloud