commit | 2a7bfe835317bb9f3ebcd20079b2bb800f4b9eaa | [log] [tgz] |
---|---|---|
author | Theodore Ts'o <tytso@mit.edu> | Sun Jul 13 15:40:15 2008 -0400 |
committer | Theodore Ts'o <tytso@mit.edu> | Sun Jul 13 16:06:57 2008 -0400 |
tree | 3b61ff73be02de3624fb922347b803323003bb95 | |
parent | ebabf2ad6d19af5c674b624bafe619dedbc94403 [diff] [blame] |
Flush stdio buffers before calling setbuf() On Solaris setbuf() will discard any pending output to the stream, so make we call fflush() before calling setbuf(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index 85facac..7039340 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c
@@ -1822,6 +1822,8 @@ exit(1); } } + fflush(stdout); + fflush(stderr); setbuf(stdout, NULL); setbuf(stderr, NULL); while (!feof(f)) {