Skip to content

Commit

Permalink
* s/O_NDELAY/O_NONBLOCK/
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Nov 19, 2007
1 parent b62950c commit f2f8e73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/sys/con_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/*
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit f2f8e73

Please sign in to comment.