summaryrefslogtreecommitdiff
path: root/misc/fsck.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-04-16 16:13:58 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-04-16 16:13:58 -0400
commit2ecaaf655755898b9ce931ec5ac5daba25905886 (patch)
tree04834b108b48883682f6a2ff6ee18296fac16380 /misc/fsck.c
parent3879857e86ab5dc83dcb38a93868262f4fb61c4d (diff)
downloade2fsprogs-2ecaaf655755898b9ce931ec5ac5daba25905886.tar.gz
Put stdout and stderr into non-buffered mode to
avoid cosmetic problems when running fsck under logsave.
Diffstat (limited to 'misc/fsck.c')
-rw-r--r--misc/fsck.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/misc/fsck.c b/misc/fsck.c
index 5638a52f..b069cd58 100644
--- a/misc/fsck.c
+++ b/misc/fsck.c
@@ -1192,6 +1192,9 @@ int main(int argc, char *argv[])
const char *fstab;
struct fs_info *fs;
+ setvbuf(stdout, NULL, _IONBF, BUFSIZ);
+ setvbuf(stderr, NULL, _IONBF, BUFSIZ);
+
#ifdef ENABLE_NLS
setlocale(LC_MESSAGES, "");
setlocale(LC_CTYPE, "");