mirror of
https://github.com/UberGames/ioef.git
synced 2024-11-24 05:01:40 +00:00
* s/O_NDELAY/O_NONBLOCK/
This commit is contained in:
parent
b62950ca6e
commit
f2f8e73d58
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue