From 4f2120f85ca2e7b99754904d2e3cbf143ddb90f3 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Tue, 17 Feb 2015 13:11:02 +0000 Subject: Add a couple of patches to fix the number of workers and CPU load. While there, regen patches, and update pkg-message to apache 2.4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 197204 Submitted by: Rudolf Čejka Sponsored by: Absolight --- net-mgmt/nagios4/files/patch-lib_iobroker.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 net-mgmt/nagios4/files/patch-lib_iobroker.c (limited to 'net-mgmt/nagios4/files/patch-lib_iobroker.c') diff --git a/net-mgmt/nagios4/files/patch-lib_iobroker.c b/net-mgmt/nagios4/files/patch-lib_iobroker.c new file mode 100644 index 000000000000..9c63a5050062 --- /dev/null +++ b/net-mgmt/nagios4/files/patch-lib_iobroker.c @@ -0,0 +1,16 @@ +--- lib/iobroker.c.orig 2014-08-12 15:00:01 UTC ++++ lib/iobroker.c +@@ -415,11 +415,11 @@ int iobroker_poll(iobroker_set *iobs, in + iobs->pfd[p].events = POLLIN; + p++; + } +- nfds = poll(iobs->pfd, iobs->num_fds, timeout); ++ nfds = poll(iobs->pfd, p, timeout); + if (nfds < 0) { + return IOBROKER_ELIB; + } +- for (i = 0; i < iobs->num_fds; i++) { ++ for (i = 0; i < p; i++) { + iobroker_fd *s; + if ((iobs->pfd[i].revents & POLLIN) != POLLIN) { + continue; -- cgit v1.2.3