aboutsummaryrefslogtreecommitdiffstats
path: root/main/multipath-tools/fix-yield.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-10-17 16:32:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-10-20 10:49:42 +0000
commitd53e824c6c41afb8206bf32a7a8e8a134e95af5b (patch)
tree76797ca6e52f3fd4d7ce449cb89e24c1d09eca5f /main/multipath-tools/fix-yield.patch
parent46127cc89c5b27cab93600b0281a149e56533d17 (diff)
downloadaports-d53e824c6c41afb8206bf32a7a8e8a134e95af5b.tar.bz2
aports-d53e824c6c41afb8206bf32a7a8e8a134e95af5b.tar.xz
main/multipath-tools: upgrade to 0.6.3
but we remove the rdb checker for now
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;