diff options
author | Matt Fischer <matt.fischer@garmin.com> | 2013-02-20 15:23:42 -0600 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-04-11 13:34:55 +0100 |
commit | 977293549d909c50490f0376bc90ec3c93cb2ad5 (patch) | |
tree | ef76fa1d2e0cb0613007ba1330446a026abe7f61 /cmake | |
parent | 2ab900b678abb6df62790549b55230215f20a8a4 (diff) | |
download | dbus-977293549d909c50490f0376bc90ec3c93cb2ad5.tar.gz |
Set default maximum number of Unix fds according to OS
QNX has an arbitrary limit to the number of file descriptors
which may be passed in a message, which is smaller than the
current default. This patch therefore changes the default from
a hardcoded constant to a macro, which is determined at configure
time by looking at the host operating system.
[This reduces the limit from 4096 (session)/1024 (system) to 128 fds
per message on QNX, and 1024 fds per message on other operating systems.
I think the reduced session bus limit on other OSs is a reasonable change
too, given that the default hard/soft ulimits in Linux are only 4096/1024
fds per process. -smcv]
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=61176
Reviewed-by: Simon McVittie <simon.mcvittie.collabora.co.uk>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/config.h.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/config.h.cmake b/cmake/config.h.cmake index 76ccb866..b0dde3dd 100644 --- a/cmake/config.h.cmake +++ b/cmake/config.h.cmake @@ -82,6 +82,8 @@ # define DBUS_ENABLE_X11_AUTOLAUNCH 1 #endif +#define DBUS_DEFAULT_MESSAGE_UNIX_FDS 1024 + #define _DBUS_VA_COPY_ASSIGN(a1,a2) { a1 = a2; } #cmakedefine DBUS_VA_COPY_FUNC |