[Pcsclite-cvs-commit] r2189 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Mon Oct 23 14:36:38 UTC 2006


Author: rousseau
Date: 2006-10-23 14:36:36 +0000 (Mon, 23 Oct 2006)
New Revision: 2189

Modified:
   trunk/PCSC/src/pcscdaemon.c
Log:
main(): fail if hotplug is requested but no pcscd is running


Modified: trunk/PCSC/src/pcscdaemon.c
===================================================================
--- trunk/PCSC/src/pcscdaemon.c	2006-10-19 11:29:29 UTC (rev 2188)
+++ trunk/PCSC/src/pcscdaemon.c	2006-10-23 14:36:36 UTC (rev 2189)
@@ -378,6 +378,12 @@
 			return EXIT_FAILURE;
 		}
 	}
+	else
+		if (HotPlug)
+		{
+			Log1(PCSC_LOG_CRITICAL, "Hotplug failed: pcscd is not running");
+			return EXIT_FAILURE;
+		}
 
 	/*
 	 * If this is set to one the user has asked it not to fork




More information about the Pcsclite-cvs-commit mailing list