dbus/tools
Simon McVittie 13b640544d Unix: Flush stdout and stderr streams before forking
stdout and stderr are close-on-exec and buffered, so we can't rely on
their buffers being empty. If we continue to execute application code
after forking (as opposed to immediately exec()ing), then the child
process might later flush the libc stdio buffers, resulting in
output that is printed by the parent also being printed by the child.

In particular, test-bus.log sometimes grows extremely large for
this reason, because this test repeatedly attempts to carry out
legacy activation.

Reviewed-by: Philip Withnall <withnall@endlessm.com>
Signed-off-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=103601
2017-11-15 12:12:18 +00:00
..
.gitignore Add dbus-test-tool, currently with "echo" and "spam" modes 2014-10-14 13:53:54 +01:00
ci-build.sh travis-ci: Enable/disable more features in various builds 2017-11-06 14:07:21 +00:00
ci-Dockerfile.in travis-ci: Add and use infrastructure to build and test in Docker 2016-11-29 12:37:48 +00:00
ci-install.sh Travis-CI: Get new autoconf-archive from Ubuntu 2017-02-16 13:28:11 +00:00
dbus-cleanup-sockets.c test, tools: assert impossible values of local enums are not reached 2017-04-07 12:07:01 +01:00
dbus-echo.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
dbus-launch-win.c Be more const-correct 2016-10-13 17:20:28 +01:00
dbus-launch-x11.c dbus-launch-x11: print a window ID portably 2016-10-13 22:44:12 +01:00
dbus-launch.c Unix: Flush stdout and stderr streams before forking 2017-11-15 12:12:18 +00:00
dbus-launch.h Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
dbus-monitor.c dbus-monitor: handle default case for binary mode header 2017-04-07 12:07:21 +01:00
dbus-print-message.c Consistently use socklen_t for getsockname, getsockopt etc. 2016-02-11 02:04:53 +01:00
dbus-print-message.h dbus-monitor: Add timestamp to --monitor mode. 2015-02-24 13:29:45 +00:00
dbus-run-session.c Unix: Flush stdout and stderr streams before forking 2017-11-15 12:12:18 +00:00
dbus-send.c Merge branch 'dbus-1.10' 2017-09-25 17:02:50 +01:00
dbus-spam.c tools: Improve argument validation in dbus-spam 2017-02-13 14:52:19 +00:00
dbus-update-activation-environment.c Clean up how we arrange for environ to be declared 2016-10-13 17:20:34 +01:00
dbus-uuidgen.c Add missing function attributes suggested by clang (but not by gcc) 2016-10-13 22:44:13 +01:00
GetAllMatchRules.py GetAllMatchRules: provide an example how it could be used 2014-10-06 12:10:51 +01:00
Makefile.am build: Avoid using echo -e 2017-10-31 13:04:15 +00:00
run-with-tmp-session-bus.sh Replace $DBUS_USE_TEST_BINARY with $DBUS_TEST_DBUS_LAUNCH 2016-02-12 15:26:23 +00:00
strtoll.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
strtoull.c Include config.h as the first thing in every .c file 2013-02-22 13:08:27 +00:00
test-tool.c dbus-test-tool: add black-hole mode 2014-10-14 13:53:59 +01:00
test-tool.h dbus-test-tool: add black-hole mode 2014-10-14 13:53:59 +01:00
tool-common.c Drop duplicated function tool_millisleep() and use dbus_sleep_milliseconds() instead. 2015-03-04 13:06:49 +01:00
tool-common.h Drop duplicated function tool_millisleep() and use dbus_sleep_milliseconds() instead. 2015-03-04 13:06:49 +01:00
Win32.Manifest Add Windows manifest to dbus-update-activation-environment.exe 2017-09-27 22:05:13 +02:00