diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-02-17 13:11:02 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-02-17 13:11:02 +0000 |
commit | 4f2120f85ca2e7b99754904d2e3cbf143ddb90f3 (patch) | |
tree | 582d4ba7d5a6db051013433a7e4a2ee943397404 /net-mgmt/nagios4/files/patch-lib_iobroker.c | |
parent | - update to 2.40 (diff) |
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.
PR: 197204
Submitted by: Rudolf Čejka
Sponsored by: Absolight
Diffstat (limited to 'net-mgmt/nagios4/files/patch-lib_iobroker.c')
-rw-r--r-- | net-mgmt/nagios4/files/patch-lib_iobroker.c | 16 |
1 files changed, 16 insertions, 0 deletions
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; |