[Pcsclite-cvs-commit] r2954 - /trunk/PCSC/src/pcscdaemon.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu May 15 10:03:00 UTC 2008


Author: rousseau
Date: Thu May 15 10:03:00 2008
New Revision: 2954

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2954
Log:
SVCServiceRunLoop(): return if HPRegisterForHotplugEvents() fails

Modified:
    trunk/PCSC/src/pcscdaemon.c

Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=2954&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Thu May 15 10:03:00 2008
@@ -139,7 +139,9 @@
 	 * Set up the search for USB/PCMCIA devices
 	 */
 	HPSearchHotPluggables();
-	HPRegisterForHotplugEvents();
+	rsp = HPRegisterForHotplugEvents();
+	if (rsp)
+		return;
 
 	/*
 	 * Set up the power management callback routine




More information about the Pcsclite-cvs-commit mailing list