aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/fix-yield.patch
blob: e93d3bce25970ac05fde2665b3460912fc3eca53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/multipathd/uxlsnr.c b/multipathd/uxlsnr.c
index 7a9faf3..4e6a197 100644
--- a/multipathd/uxlsnr.c
+++ b/multipathd/uxlsnr.c
@@ -180,7 +180,7 @@ void * uxsock_listen(uxsock_trigger_fn uxsock_trigger, void * trigger_data)
 				pthread_mutex_unlock(&client_lock);
 				condlog(0, "%s: failed to realloc %d poll fds",
 					"uxsock", 1 + num_clients);
-				pthread_yield();
+				sched_yield();
 				continue;
 			}
 			old_clients = num_clients;