test-bus, test-dbus: close any inherited fds from caller
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 24 Oct 2014 12:41:13 +0000 (13:41 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Fri, 24 Oct 2014 16:48:18 +0000 (18:48 +0200)
commit3d363220ad9e16f00faa1c6cdd4913507c3e4c1a
treeba68b3417508b5cdeab68150270c94b4a5264749
parent8fd6e561dfb3f4ae888d1777c84d24fcb2483dff
test-bus, test-dbus: close any inherited fds from caller

It is probably a bug for them to pass us any fds without close-on-exec;
but apparently CMake has this bug, and so does at least some NetBSD GUI
environment. Cope.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=73689
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=83899
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
bus/test-main.c
dbus/dbus-test-main.c