more FNDELAY to O_NONBLOCK

This commit is contained in:
Bill Currie 2002-04-07 06:31:22 +00:00
parent bad8b0fcf2
commit 05ec06d3e2

View file

@ -75,7 +75,7 @@ static void
shutdown (void)
{
// change stdin to blocking
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
}
void
@ -161,7 +161,7 @@ main (int c, const char *v[])
isDedicated = (COM_CheckParm ("-dedicated") != 0);
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
Sys_RegisterShutdown (Host_Shutdown);
Sys_RegisterShutdown (shutdown);
@ -169,7 +169,7 @@ main (int c, const char *v[])
Host_Init ();
if (!sys_nostdout->int_val) {
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) | O_NONBLOCK);
Con_Printf ("Quake -- Version %s\n", NQ_VERSION);
}