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.
This commit is contained in:
parent
72155f03b6
commit
40390c0719
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user