dbus/tools
Lennart Poettering 43b1f91865 dbus-monitor: use unbuffered stdout instead of handling SIGINT
The current SIGINT handling of dbus-monitor ain't making too many people
happy since it defers the exit to the next msg received -- which might
be quite some time away often enough.

This patch replaces the SIGINT handling by simply enabling line-buffered
IO for STDOUT so that even if you redirect dbus-monitor into a file no
lines get accidently lost and the effect of C-c is still immediate.

halfline came up with the great idea to use setvbuf here instead of
fflush()ing after each printf().

(Oh and the old signal handler was broken anyway, the flag should have
been of type sigatomic_t and be marked volatile)

Signed-off-by: Colin Walters <walters@verbum.org>
2009-07-31 12:27:48 -04:00
..
.gitignore migrate from cvs to git (cvs2svn -> git-svnimport). 2007-09-13 11:13:40 -04:00
dbus-cleanup-sockets.1 2006-09-30 Havoc Pennington <hp@redhat.com> 2006-10-01 03:18:47 +00:00
dbus-cleanup-sockets.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-launch-win.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-launch-x11.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-launch.1 * dbus/dbus-sysdeps-unix.c: capture the dbus-launch stderr 2007-03-03 10:36:46 +00:00
dbus-launch.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-launch.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-monitor.1 Bug 2432 - Support --address option for dbus-monitor 2009-07-14 15:42:25 -04:00
dbus-monitor.c dbus-monitor: use unbuffered stdout instead of handling SIGINT 2009-07-31 12:27:48 -04:00
dbus-print-message.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-print-message.h Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-send.1 Document syntax for container types in dbus-send man file (#9553) 2007-10-09 15:27:53 -04:00
dbus-send.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-uuidgen.1 2006-11-14 Havoc Pennington <hp@redhat.com> 2006-11-15 01:52:01 +00:00
dbus-uuidgen.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
dbus-viewer.c Bug 21161 - Update the FSF address 2009-07-14 15:39:47 -04:00
Makefile.am * bus/config-parser.c (service_dirs_find_dir): use 2006-11-02 23:56:48 +00:00
run-with-tmp-session-bus.sh Infrastructure for testing a "system like" bus in test suite 2008-12-05 11:39:36 -05:00