summaryrefslogtreecommitdiffstats
path: root/tools/dbus-print-message.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-08-26 15:41:31 +0000
committerColin Walters <walters@verbum.org>2005-08-26 15:41:31 +0000
commitb2d215da3876838b4b0f882890fd40199e67a4b9 (patch)
treef56b1a4e728f3ffc52ba7787458ea052acb87892 /tools/dbus-print-message.c
parent18170dd986e4e4efe440c9dfa6f47ba87604b7ec (diff)
2005-08-26 Colin Walters <walters@verbum.org>
* tools/dbus-print-message.c (print_message): Flush stdout after printing a message, so that redirecting to a file, then hitting Ctrl-C works.
Diffstat (limited to 'tools/dbus-print-message.c')
-rw-r--r--tools/dbus-print-message.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/dbus-print-message.c b/tools/dbus-print-message.c
index e201fda3..17531c17 100644
--- a/tools/dbus-print-message.c
+++ b/tools/dbus-print-message.c
@@ -189,6 +189,7 @@ print_message (DBusMessage *message, dbus_bool_t literal)
dbus_message_iter_init (message, &iter);
print_iter (&iter, literal, 1);
+ fflush (stdout);
}