bus: Raise file descriptor limit to match configuration
authorColin Walters <walters@verbum.org>
Mon, 31 Jan 2011 20:22:14 +0000 (15:22 -0500)
committerColin Walters <walters@verbum.org>
Thu, 3 Feb 2011 18:25:34 +0000 (13:25 -0500)
commit66a09fa7c3c8e4232b4225c49d01d9efb97458c9
treefc1d6d281bd48532ccc9af33dd6c76a74af5b14f
parenta0e8ae3b77e5ec33e5661f82320cdef4466a9f9d
bus: Raise file descriptor limit to match configuration

The default configuration has hardcoded 2048 complete connections,
and 64 incomplete.  We need at least that number of file descriptors,
plus some for internal use.

In the bus, attempt to call setrlimit() before we drop privileges.
Practically speaking for this means the system bus gets it, the
session bus doesn't.

http://bugs.freedesktop.org/show_bug.cgi?id=33474

Reviewed-By: Simon McVittie <simon.mcvittie@collabora.co.uk>
bus/bus.c
configure.in
dbus/dbus-sysdeps-util-unix.c
dbus/dbus-sysdeps-util-win.c
dbus/dbus-sysdeps.h