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 {