[Pcsclite-cvs-commit] PCSC/src pcscdaemon.c,1.42,1.43
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv27123
Modified Files:
pcscdaemon.c
Log Message:
call HPStopHotPluggables() before stopping the drivers to avoid a new
reader detection/start by hotplug when we want to stop everything
Index: pcscdaemon.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/pcscdaemon.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- pcscdaemon.c 18 Mar 2004 09:20:04 -0000 1.42
+++ pcscdaemon.c 18 Mar 2004 10:10:45 -0000 1.43
@@ -163,7 +163,14 @@
}
if (AraKiri)
+ {
+ /* stop the hotpug thread and waits its exit */
+ HPStopHotPluggables();
+ SYS_Sleep(1);
+
+ /* now stop all the drivers */
RFCleanupReaders(1);
+ }
}
}