Bug 4009 - Dedicated server doesn't read stdin if it's not a tty.
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Platform
Version: GIT MASTER
Hardware: All Linux
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2009-03-08 16:05 EDT by blob
Modified: 2009-05-03 16:06:33 EDT
0 users

See Also:



Description blob 2009-03-08 16:05:58 EDT
I found this when trying to use an external script/daemon
to control my dedicated server, after upgrading from 1.34 to
svn HEAD.

It seems that stdin_active is undefined, I provided the
following patch.

--- code/sys/con_tty.c  (revision 1508)
+++ code/sys/con_tty.c  (working copy)
@@ -413,7 +413,7 @@
                int     len;
                fd_set  fdset;
                struct timeval timeout;
-               static qboolean stdin_active;
+               static qboolean stdin_active = qtrue;
 
                if (!com_dedicated || !com_dedicated->value)
                        return NULL;
Comment 1 Ludwig Nussel 2009-05-03 16:06:33 EDT
fixed. Additionally the server will not use tty console if TERM is set to "raw" or "dumb".