mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-05 15:31:16 +00:00
more FNDELAY to O_NONBLOCK
This commit is contained in:
parent
bad8b0fcf2
commit
05ec06d3e2
1 changed files with 3 additions and 3 deletions
|
@ -75,7 +75,7 @@ static void
|
||||||
shutdown (void)
|
shutdown (void)
|
||||||
{
|
{
|
||||||
// change stdin to blocking
|
// 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
|
void
|
||||||
|
@ -161,7 +161,7 @@ main (int c, const char *v[])
|
||||||
|
|
||||||
isDedicated = (COM_CheckParm ("-dedicated") != 0);
|
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 (Host_Shutdown);
|
||||||
Sys_RegisterShutdown (shutdown);
|
Sys_RegisterShutdown (shutdown);
|
||||||
|
@ -169,7 +169,7 @@ main (int c, const char *v[])
|
||||||
Host_Init ();
|
Host_Init ();
|
||||||
|
|
||||||
if (!sys_nostdout->int_val) {
|
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);
|
Con_Printf ("Quake -- Version %s\n", NQ_VERSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue