From: Theodore Ts'o Date: Tue, 22 Aug 2000 21:30:11 +0000 (+0000) Subject: ChangeLog, util.c: X-Git-Tag: E2FSPROGS-1_20~242 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=cc96b2b0fe3ab012f716e1fc6955b8530480fec8;p=tools%2Fe2fsprogs.git ChangeLog, util.c: util.c (fatal_error): Try to flush the I/O manager before forcing an exit. --- diff --git a/e2fsck/ChangeLog b/e2fsck/ChangeLog index 86f1939..3dddcc5 100644 --- a/e2fsck/ChangeLog +++ b/e2fsck/ChangeLog @@ -1,3 +1,8 @@ +2000-08-22 + + * util.c (fatal_error): Try to flush the I/O manager before + forcing an exit. + 2000-08-20 * journal.c (e2fsck_journal_load): Fix **nasty** bug which caused diff --git a/e2fsck/util.c b/e2fsck/util.c index 9fd0114..0534b11 100644 --- a/e2fsck/util.c +++ b/e2fsck/util.c @@ -39,6 +39,8 @@ void fatal_error(e2fsck_t ctx, const char *msg) { if (msg) fprintf (stderr, "e2fsck: %s\n", msg); + if (ctx->fs && ctx->fs->io) + io_channel_flush(ctx->fs->io); ctx->flags |= E2F_FLAG_ABORT; if (ctx->flags & E2F_FLAG_SETJMP_OK) longjmp(ctx->abort_loc, 1);