summarylogtreecommitdiffstats
path: root/0003-Fix-missing-pthread_cancel.patch
blob: 1de7fce35348903cf5051ef9e6ac9a29225b5a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/eventhandler.c
+++ b/src/eventhandler.c
@@ -182,7 +182,7 @@
 	if ((IFD_SUCCESS == rv) && (1 == dwGetSize) && ucGetData[0])
 	{
 		Log1(PCSC_LOG_INFO, "Killing polling thread");
-		(void)pthread_cancel(rContext->pthThread);
+		(void)pthread_kill(rContext->pthThread, 0);
 	}
 	else
 	{