[Pcsclite-cvs-commit] r3104 - /trunk/PCSC/src/winscard_msg_srv.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Aug 28 08:38:13 UTC 2008


Author: rousseau
Date: Thu Aug 28 08:38:13 2008
New Revision: 3104

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3104
Log:
SHMProcessEventsContext(): do not timeout every 1 second on Linux.

We do timeout only on *BSD like in SHMProcessEventsServer()

Modified:
    trunk/PCSC/src/winscard_msg_srv.c

Modified: trunk/PCSC/src/winscard_msg_srv.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg_srv.c?rev=3104&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg_srv.c (original)
+++ trunk/PCSC/src/winscard_msg_srv.c Thu Aug 28 08:38:13 2008
@@ -264,16 +264,24 @@
 {
 	fd_set read_fd;
 	int selret, rv;
+#ifdef DO_TIMEOUT
 	struct timeval tv;
 
 	tv.tv_sec = 1;
 	tv.tv_usec = 0;
+#endif
 
 	FD_ZERO(&read_fd);
 	FD_SET(dwClientID, &read_fd);
 
 	selret = select(dwClientID + 1, &read_fd, (fd_set *) NULL,
-		(fd_set *) NULL, &tv);
+		(fd_set *) NULL,
+#ifdef DO_TIMEOUT
+		&tv
+#else
+		NULL
+#endif
+		);
 
 	if (selret < 0)
 	{




More information about the Pcsclite-cvs-commit mailing list