I believe line 146 of ttylog.c should be :
if (retval > 0)
instead of ;
This because under linux "man select" reads "On error, -1 is returned".
On a side note, I also believe that line 137 and 138 of the same file are superfluous, as rfds will be set in the while loop anyway.