net-mgmt/nsca: Add patch to prevent crashing on FreeBSD
PR: 218879 Approved by: maintainer timeout MFH: 2017Q4
This commit is contained in:
parent
68821ded9f
commit
6bc97775cd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=453279
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= nsca
|
||||
PORTVERSION= 2.9.2
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net-mgmt
|
||||
MASTER_SITES= SF/nagios/nsca-2.x/nsca-${PORTVERSION}
|
||||
|
||||
|
11
net-mgmt/nsca/files/patch-src_nsca.c
Normal file
11
net-mgmt/nsca/files/patch-src_nsca.c
Normal 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
|
Loading…
Reference in New Issue
Block a user