diff options
author | kamil <kamil@pkgsrc.org> | 2016-04-03 00:01:30 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2016-04-03 00:01:30 +0000 |
commit | 06d3bb74fc845663d84664819ecbf43b94f41394 (patch) | |
tree | d14e73d0f36f7b66716776d70d75478baa8a2f1a /net | |
parent | d2199dc1329a46996f315e7a890c7ed129903659 (diff) | |
download | pkgsrc-06d3bb74fc845663d84664819ecbf43b94f41394.tar.gz |
Add patch from Yuval Langer
Comment from the cherry-picked commit:
Defining thread priority for SCHED_OTHER is implementation defined.
Some platforms like NetBSD cannot reassign it as they are dynamic.
<http://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_getschedparam.html>
Credit goes to kamil@netbsd.org and riastradh@netbsd.org for finding this
solution.
This should address PR pkg/50780 by Travis Paul
Diffstat (limited to 'net')
-rw-r--r-- | net/zeromq/distinfo | 3 | ||||
-rw-r--r-- | net/zeromq/patches/patch-src_thread.cpp | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/net/zeromq/distinfo b/net/zeromq/distinfo index 28c07c6efde..3260dfab621 100644 --- a/net/zeromq/distinfo +++ b/net/zeromq/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.20 2016/02/07 11:05:38 adam Exp $ +$NetBSD: distinfo,v 1.21 2016/04/03 00:01:30 kamil Exp $ SHA1 (zeromq-4.1.4.tar.gz) = b632a4b6f8a14390dc17824e37ff7b10831ce2b4 RMD160 (zeromq-4.1.4.tar.gz) = 6ee27e7b1c3a978cdff670774a8363d8592c3031 @@ -7,3 +7,4 @@ Size (zeromq-4.1.4.tar.gz) = 1400012 bytes SHA1 (patch-configure) = 1dc8623eb06a167b3559ae950a9dbf1e19a29b6d SHA1 (patch-src_platform.hpp.in) = 767370bd997310cddeb7ee1f759bec1a638974e0 SHA1 (patch-src_tcp__address.cpp) = ad1c1ec9b724c3bd7f0fae15c296e0ec33b4267a +SHA1 (patch-src_thread.cpp) = 84e13f025dcb9a1f700bcd13acb01bb512e500b0 diff --git a/net/zeromq/patches/patch-src_thread.cpp b/net/zeromq/patches/patch-src_thread.cpp new file mode 100644 index 00000000000..8c4fda7a099 --- /dev/null +++ b/net/zeromq/patches/patch-src_thread.cpp @@ -0,0 +1,15 @@ +$NetBSD: patch-src_thread.cpp,v 1.1 2016/04/03 00:01:30 kamil Exp $ + +--- src/thread.cpp.orig 2015-11-04 08:55:13.000000000 +0000 ++++ src/thread.cpp +@@ -131,6 +131,10 @@ void zmq::thread_t::setSchedulingParamet + policy = schedulingPolicy_; + } + ++#ifdef __NetBSD__ ++ if(policy == SCHED_OTHER) param.sched_priority = -1; ++#endif ++ + rc = pthread_setschedparam(descriptor, policy, ¶m); + posix_assert (rc); + #endif |