[quake3] Re: Dedicated server problems..

vincent at cojot.name vincent at cojot.name
Mon Nov 19 12:20:58 EST 2007


This diff fixes it for me:

Index: code/sys/con_tty.c
===================================================================
--- code/sys/con_tty.c  (revision 1214)
+++ code/sys/con_tty.c  (working copy)
@@ -256,7 +256,7 @@
         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_NDELAY | O_NONBLOCK 
);

         if (isatty(STDIN_FILENO)!=1)
         {

I have no idea why this fixes it (I'm not familiar with termios) but it 
works fine with that simple patch on Solaris. If anyone finds this diff 
acceptable, I'll open another bugzilla..

Any ideas?

Vincent

On Mon, 19 Nov 2007, vincent at cojot.name wrote:

> On Mon, 19 Nov 2007, Tim Angus wrote:
>
>>  You should probably look at bit further back then. 1161 is just the branch
>>  merge, so lots and lots of stuff happened in that one revision. You can
>>  get finger grained changes in the previous 20 revisions or so.
>
> I have located the reg a little bit more precisely: it happened between revs 
> 1143 and 1144 of the 'unifided-sdl' branch.. Most likely the comment to note 
> is "emoved a shedload of redundant comments and dead code" . :) Rev 1143 
> works fine and Rev 1144 does some strange stuff to my terminal and it is 
> where it starts failing..
>
> Trying to find where it fails more precisely..



More information about the quake3 mailing list