mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-18 01:30:07 +02:00
26 lines
794 B
Plaintext
26 lines
794 B
Plaintext
From fb309b972f9b0c5daf008690b8d93b8f5dc2d179 Mon Sep 17 00:00:00 2001
|
|
From: Jerome Duval <jerome.duval@gmail.com>
|
|
Date: Sat, 12 Dec 2020 14:44:55 +0100
|
|
Subject: Haiku: maximum 4096 fds
|
|
|
|
|
|
diff --git a/dbus/dbus-sysdeps-util-unix.c b/dbus/dbus-sysdeps-util-unix.c
|
|
index 26fcb5b..6302932 100644
|
|
--- a/dbus/dbus-sysdeps-util-unix.c
|
|
+++ b/dbus/dbus-sysdeps-util-unix.c
|
|
@@ -409,7 +409,11 @@ _dbus_rlimit_save_fd_limit (DBusError *error)
|
|
/* Enough fds that we shouldn't run out, even if several uids work
|
|
* together to carry out a denial-of-service attack. This happens to be
|
|
* the same number that systemd < 234 would normally use. */
|
|
+#ifdef __HAIKU__
|
|
+#define ENOUGH_FDS 4096
|
|
+#else
|
|
#define ENOUGH_FDS 65536
|
|
+#endif
|
|
|
|
dbus_bool_t
|
|
_dbus_rlimit_raise_fd_limit (DBusError *error)
|
|
--
|
|
2.28.0
|
|
|