s/FNDELAY/O_NONBLOCK/

This commit is contained in:
Bill Currie 2002-04-07 05:35:32 +00:00
parent 7d6792ecff
commit 9540e9af4a

View file

@ -88,7 +88,7 @@ Sys_DebugLog (const char *file, const char *fmt, ...)
static void static void
shutdown (void) shutdown (void)
{ {
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY); fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
fflush (stdout); fflush (stdout);
} }
@ -164,7 +164,7 @@ main (int argc, const char **argv)
host_parms.argv = com_argv; host_parms.argv = com_argv;
} }
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 (Host_Shutdown);
Sys_RegisterShutdown (shutdown); Sys_RegisterShutdown (shutdown);