diff options
author | Theodore Ts'o <tytso@mit.edu> | 2003-04-16 16:13:58 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2003-04-16 16:13:58 -0400 |
commit | 2ecaaf655755898b9ce931ec5ac5daba25905886 (patch) | |
tree | 04834b108b48883682f6a2ff6ee18296fac16380 /misc/fsck.c | |
parent | 3879857e86ab5dc83dcb38a93868262f4fb61c4d (diff) | |
download | e2fsprogs-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.c | 3 |
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, ""); |