mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
net-mgmt/icinga2:
- Cherrypick an upstream patch that fixes Icinga 2 restarts via API - Bump PORTREVISION MFH: 2019Q1
This commit is contained in:
parent
e8169eae13
commit
486a515d6e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=492434
@ -3,7 +3,7 @@
|
||||
PORTNAME= icinga2
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.10.2
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= net-mgmt
|
||||
|
||||
MAINTAINER= lme@FreeBSD.org
|
||||
|
12
net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp
Normal file
12
net-mgmt/icinga2/files/patch-lib_base_tcpsocket.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
--- lib/base/tcpsocket.cpp.orig 2019-02-08 13:14:32 UTC
|
||||
+++ lib/base/tcpsocket.cpp
|
||||
@@ -91,6 +91,9 @@ void TcpSocket::Bind(const String& node, const String&
|
||||
|
||||
const int optTrue = 1;
|
||||
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, reinterpret_cast<const char *>(&optTrue), sizeof(optTrue));
|
||||
+#ifndef _WIN32
|
||||
+ setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, reinterpret_cast<const char *>(&optTrue), sizeof(optTrue));
|
||||
+#endif /* _WIN32 */
|
||||
|
||||
int rc = bind(fd, info->ai_addr, info->ai_addrlen);
|
||||
|
Loading…
Reference in New Issue
Block a user