[PATCH] blkparse: only break out of last loop if not dumping to stdout
authorJens Axboe <axboe@suse.de>
Mon, 3 Oct 2005 12:27:05 +0000 (14:27 +0200)
committerJens Axboe <axboe@suse.de>
Mon, 3 Oct 2005 12:27:05 +0000 (14:27 +0200)
Otherwise sending a ctrl-c when running btrace will quit, leaving
entries never dumped.

blkparse.c

index ade9fbbedca28fec15691a32bc81f1d7155ff778..0a3655d89e78ee4cd273e83df561c6fb1178d9a0 100644 (file)
@@ -1360,7 +1360,7 @@ static void show_entries_rb(int force)
        struct trace *t;
 
        while ((n = rb_first(&rb_sort_root)) != NULL) {
-               if (is_done() && !force)
+               if (is_done() && !force && !pipeline)
                        break;
 
                t = rb_entry(n, struct trace, rb_node);