aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/fix-yield.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/multipath-tools/fix-yield.patch')
-rw-r--r--main/multipath-tools/fix-yield.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/main/multipath-tools/fix-yield.patch b/main/multipath-tools/fix-yield.patch
new file mode 100644
index 0000000000..e93d3bce25
--- /dev/null
+++ b/main/multipath-tools/fix-yield.patch
@@ -0,0 +1,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;