From 03ff5fcd2a2ae9f8cfc64d8b9c2b4204eeb40a00 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sun, 25 Sep 2005 22:37:47 +0000
Subject: [PATCH] More dealing with Linux breakage... pthread + signals doesn't
 work correctly. Loop on the select forever erm... forever. ie: select()
 forever forever now.

---
 src/sbbs3/sbbscon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/sbbscon.c b/src/sbbs3/sbbscon.c
index 84a0b791e0..93218bb48e 100644
--- a/src/sbbs3/sbbscon.c
+++ b/src/sbbs3/sbbscon.c
@@ -1713,7 +1713,8 @@ int main(int argc, char** argv)
 	}
 
 	if(!isatty(fileno(stdin)))  			/* redirected */
-		select(0,NULL,NULL,NULL,NULL);	/* Sleep forever - Should this just exit the thread? */
+		while(1)
+			select(0,NULL,NULL,NULL,NULL);	/* Sleep forever - Should this just exit the thread? */
 	else 								/* interactive */
 #endif
 	{
-- 
GitLab