diff options
author | Colin Walters <walters@verbum.org> | 2005-08-26 15:41:31 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2005-08-26 15:41:31 +0000 |
commit | b2d215da3876838b4b0f882890fd40199e67a4b9 (patch) | |
tree | f56b1a4e728f3ffc52ba7787458ea052acb87892 | |
parent | 18170dd986e4e4efe440c9dfa6f47ba87604b7ec (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-- | ChangeLog | 6 | ||||
-rw-r--r-- | tools/dbus-print-message.c | 1 |
2 files changed, 7 insertions, 0 deletions
@@ -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); } |