chiark / gitweb /
busctl: flush stdout after dumping data
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 4 Jul 2015 10:11:22 +0000 (12:11 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:05:55 +0000 (10:05 +0100)
commit260ec60412d6488016a39c8f8ee58273e2514ab1
treec29700bdfe8803862945fc46b42bee3a3ff4d0b5
parentb767c85a403ee56b5f87bc9414638b857dabd18d
busctl: flush stdout after dumping data

Running `busctl monitor` currently buffers data for several seconds /
kilobytes before writing stdout. This is highly confusing if you dump in a
file, ^C busctl and then end up with a file with data of the last few
_seconds_ missing.

Fix this by explicitly flushing after each signal.
src/libelogind/sd-bus/busctl.c