net-mgmt/nsca: Add patch to prevent crashing on FreeBSD

PR:		218879
Approved by:	maintainer timeout
MFH:		2017Q4
This commit is contained in:
Mark Felder 2017-11-01 11:48:32 +00:00
parent 68821ded9f
commit 6bc97775cd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453279
2 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= nsca
PORTVERSION= 2.9.2
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/nagios/nsca-2.x/nsca-${PORTVERSION}

View File

@ -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