summaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--ChangeLog6
-rw-r--r--tools/dbus-print-message.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 570259e1..e8210afe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2005-08-25 John (J5) Palmieri <johnp@redhat.com>
* python/dbus_bindings.pyx: Tracked down a major memleak and fixed it
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);
}