]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-bus/busctl.c
busctl: flush stdout after dumping data
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 4 Jul 2015 10:11:22 +0000 (12:11 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 4 Jul 2015 10:23:39 +0000 (12:23 +0200)
commit1d44f7584a713ab24e1ead541a8c85e176b99fd2
tree20ca5942fa55347973f706718b5e154f0682ebdb
parent2812dcba85435c59203268ab54901a72c6c24a69
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/libsystemd/sd-bus/busctl.c