From 05ec06d3e262d4fe8f748d8925c441715eb2aa39 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sun, 7 Apr 2002 06:31:22 +0000 Subject: [PATCH] more FNDELAY to O_NONBLOCK --- nq/source/sys_unix.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nq/source/sys_unix.c b/nq/source/sys_unix.c index 588b1d829..77ffc3866 100644 --- a/nq/source/sys_unix.c +++ b/nq/source/sys_unix.c @@ -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); }