From 7c4e317afe148cc90a6afc9750d62015ca504f05 Mon Sep 17 00:00:00 2001
From: sbbs <>
Date: Mon, 21 Mar 2011 01:30:29 +0000
Subject: [PATCH] log warning if select(NULL) returns (it shouldn't).

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

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