diff options
author | Theodore Ts'o <tytso@mit.edu> | 2008-07-13 15:40:15 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2008-07-13 16:06:57 -0400 |
commit | 2a7bfe835317bb9f3ebcd20079b2bb800f4b9eaa (patch) | |
tree | 3b61ff73be02de3624fb922347b803323003bb95 /lib | |
parent | ebabf2ad6d19af5c674b624bafe619dedbc94403 (diff) | |
download | e2fsprogs-2a7bfe835317bb9f3ebcd20079b2bb800f4b9eaa.tar.gz |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ss/test_ss.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ss/test_ss.c b/lib/ss/test_ss.c index 0b0bb587..36e899d3 100644 --- a/lib/ss/test_ss.c +++ b/lib/ss/test_ss.c @@ -49,6 +49,8 @@ static int source_file(const char *cmd_file, int sci_idx) exit(1); } } + fflush(stdout); + fflush(stderr); setbuf(stdout, NULL); setbuf(stderr, NULL); while (!feof(f)) { |