Check for setvbuf failure. Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- diff --git a/blktrace.c b/blktrace.c index 72866e2..848250d 100644 --- a/blktrace.c +++ b/blktrace.c @@ -2178,7 +2178,10 @@ static int handle_args(int argc, char *argv[]) piped_output = 1; handle_pfds = handle_pfds_entries; pfp = stdout; - setvbuf(pfp, NULL, _IONBF, 0); + if (setvbuf(pfp, NULL, _IONBF, 0)) { + perror("setvbuf stdout"); + return 1; + } } else handle_pfds = handle_pfds_file; return 0; -- To unsubscribe from this list: send the line "unsubscribe linux-btrace" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html