2005-08-26 Colin Walters <walters@verbum.org>
authorColin Walters <walters@verbum.org>
Fri, 26 Aug 2005 15:41:31 +0000 (15:41 +0000)
committerColin Walters <walters@verbum.org>
Fri, 26 Aug 2005 15:41:31 +0000 (15:41 +0000)
* tools/dbus-print-message.c (print_message): Flush stdout
after printing a message, so that redirecting to a file, then
hitting Ctrl-C works.

ChangeLog
tools/dbus-print-message.c

index 570259e..e8210af 100644 (file)
--- 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
index e201fda..17531c1 100644 (file)
@@ -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);
   
 }