summaryrefslogtreecommitdiff
path: root/databases/firebird30-server/files/patch-src_remote_inet.cpp
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-06-27 20:11:43 -0500
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2021-06-27 20:14:20 -0500
commitca43515803a2c11ec91ed6f32aa3155628e45ae8 (patch)
tree3c4ebd8d0470b0d3b1756cb193b97ff330b369d2 /databases/firebird30-server/files/patch-src_remote_inet.cpp
parentbiology/biostar-tools: Remove falsehood in pkg-message (diff)
databases/fireird30-[client|server]: New port: Firebird-3 relational database
Firebird is a relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, and powerful language support for stored procedures and triggers. It has been used in production systems, under a variety of names since 1981. Firebird is completely free of any registration, licensing or deployment fees. It may be deployed freely for use with any third-party software, whether commercial or not. WWW: https://sourceforge.net/projects/firebird/ WWW: http://www.firebirdsql.org/ PR: 254387
Diffstat (limited to '')
-rw-r--r--databases/firebird30-server/files/patch-src_remote_inet.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/databases/firebird30-server/files/patch-src_remote_inet.cpp b/databases/firebird30-server/files/patch-src_remote_inet.cpp
new file mode 100644
index 000000000000..6b45a4f61e75
--- /dev/null
+++ b/databases/firebird30-server/files/patch-src_remote_inet.cpp
@@ -0,0 +1,25 @@
+--- src/remote/inet.cpp.orig 2020-10-20 08:40:05 UTC
++++ src/remote/inet.cpp
+@@ -962,7 +962,7 @@ rem_port* INET_connect(const TEXT* name,
+ gai_hints.ai_family = ((host.hasData() || !ipv6) ? AF_UNSPEC : AF_INET6);
+ gai_hints.ai_socktype = SOCK_STREAM;
+
+-#if !defined(WIN_NT) && !defined(__clang__)
++#if !defined(WIN_NT) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+ gai_hints.ai_protocol = SOL_TCP;
+ #else
+ gai_hints.ai_protocol = IPPROTO_TCP;
+@@ -1176,6 +1176,12 @@ static rem_port* listener_socket(rem_port* port, USHOR
+ setFastLoopbackOption(port);
+
+ inet_ports->registerPort(port);
++
++ char *parent_pid;
++ if (parent_pid = getenv("FB_SIGNAL_PROCESS"))
++ {
++ kill(atoi(parent_pid), SIGUSR1);
++ }
+
+ if (flag & SRVR_multi_client)
+ {
+