tomh / rpms / lirc

Forked from rpms/lirc 6 years ago
Clone
382ec19
--- daemons/lircd.c	2008/05/09 18:40:59	5.77
382ec19
+++ daemons/lircd.c	2008/08/21 18:39:25	5.78
382ec19
@@ -515,10 +515,13 @@
382ec19
 		{
382ec19
 			if(!hw.init_func())
382ec19
 			{
382ec19
-				shutdown(clis[0],2);
382ec19
-				close(clis[0]);
382ec19
-				clin=0;
7208a57
-				dosigterm(SIGTERM);
382ec19
+				logprintf(LOG_WARNING,
382ec19
+					  "Failed to initialize hardware");
382ec19
+				/* Don't exit here, otherwise lirc
382ec19
+				 * bails out, and lircd exits, making
382ec19
+				 * it impossible to connect to when we
382ec19
+				 * have a device actually plugged
382ec19
+				 * in. */
7208a57
 			}
7208a57
 		}
7208a57
 	}