diff options
author | feld <feld@FreeBSD.org> | 2017-11-01 19:48:32 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2017-11-01 19:48:32 +0800 |
commit | 8cbf587ee84cb5bb0ec0cc66ba08f92dea1adecb (patch) | |
tree | 946a43bf7c3a2f93ec0be01dd3b4d59a603f830a /net-mgmt | |
parent | afbd51c78036e19b11ebef6c42bd70f4094f6290 (diff) | |
download | freebsd-ports-gnome-8cbf587ee84cb5bb0ec0cc66ba08f92dea1adecb.tar.gz freebsd-ports-gnome-8cbf587ee84cb5bb0ec0cc66ba08f92dea1adecb.tar.zst freebsd-ports-gnome-8cbf587ee84cb5bb0ec0cc66ba08f92dea1adecb.zip |
net-mgmt/nsca: Add patch to prevent crashing on FreeBSD
PR: 218879
Approved by: maintainer timeout
MFH: 2017Q4
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/nsca/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/nsca/files/patch-src_nsca.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/net-mgmt/nsca/Makefile b/net-mgmt/nsca/Makefile index 5ab725ce14dd..db1b258e15db 100644 --- a/net-mgmt/nsca/Makefile +++ b/net-mgmt/nsca/Makefile @@ -3,6 +3,7 @@ PORTNAME= nsca PORTVERSION= 2.9.2 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= SF/nagios/nsca-2.x/nsca-${PORTVERSION} diff --git a/net-mgmt/nsca/files/patch-src_nsca.c b/net-mgmt/nsca/files/patch-src_nsca.c new file mode 100644 index 000000000000..120e5207060d --- /dev/null +++ b/net-mgmt/nsca/files/patch-src_nsca.c @@ -0,0 +1,11 @@ +--- src/nsca.c.orig 2017-04-20 16:25:28 UTC ++++ src/nsca.c +@@ -917,7 +917,7 @@ static void accept_connection(int sock, + return; + + /* try and handle temporary errors */ +- if(errno==EWOULDBLOCK || errno==EINTR || errno==ECHILD){ ++ if(errno==EWOULDBLOCK || errno==EINTR || errno==ECHILD || errno==ECONNABORTED){ + if(mode==MULTI_PROCESS_DAEMON) + sleep(1); + else |