summarylogtreecommitdiffstats
path: root/0001-Use-pthread_kill.patch
blob: a7c4c5c4f1490a92791f9681076bee974abd6de5 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/prov/util/src/util_mem_monitor.c
+++ b/prov/util/src/util_mem_monitor.c
@@ -688,7 +688,7 @@
 
 static void ofi_uffd_stop(struct ofi_mem_monitor *monitor)
 {
-	pthread_cancel(uffd.thread);
+	pthread_kill(uffd.thread, 0);
 	pthread_join(uffd.thread, NULL);
 	close(uffd.fd);
 }