From f2f8e73d58272e33ee10afe5abae43e9f41ae87e Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Mon, 19 Nov 2007 19:59:37 +0000 Subject: [PATCH] * s/O_NDELAY/O_NONBLOCK/ --- code/sys/con_tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/sys/con_tty.c b/code/sys/con_tty.c index dd37c19c..5e499eb6 100644 --- a/code/sys/con_tty.c +++ b/code/sys/con_tty.c @@ -168,7 +168,7 @@ void CON_Shutdown( void ) } // Restore blocking to stdin reads - fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) & ~O_NDELAY ); + fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) & ~O_NONBLOCK ); } /* @@ -256,7 +256,7 @@ void CON_Init( void ) signal(SIGTTOU, SIG_IGN); // Make stdin reads non-blocking - fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | O_NDELAY ); + fcntl( 0, F_SETFL, fcntl( 0, F_GETFL, 0 ) | O_NONBLOCK ); if (isatty(STDIN_FILENO)!=1) {