sysdeps-unix: introduce dbus_close_all() and make use of it where appropriate
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jul 2011 03:33:46 +0000 (05:33 +0200)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Mon, 12 Mar 2012 16:38:53 +0000 (16:38 +0000)
commit1a4d710d67391c1d7be2d7db6313e6c118acc773
tree02acd259876314f67b44918ed49b72c2bc11f5ac
parent552ca4d0ce8a59617db16b78698e80897b8b33e4
sysdeps-unix: introduce dbus_close_all() and make use of it where appropriate

This is optimized on Linux and enumerates through /proc/self/fd with a
fallback on brute-force closing of fds, in case /proc is not available.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=35230
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-unix.c
dbus/dbus-sysdeps-unix.h