projects
/
blktrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Check setvbuf return value
[blktrace.git]
/
blktrace.c
diff --git
a/blktrace.c
b/blktrace.c
index b14daf20c29cf740415ab7ff2d9f36707060a22d..49cfca61352ddca5233f669e76edb1bea54f84e2 100644
(file)
--- a/
blktrace.c
+++ b/
blktrace.c
@@
-2183,7
+2183,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;