summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--e2fsck/super.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c
index 22029674..c71e0356 100644
--- a/e2fsck/super.c
+++ b/e2fsck/super.c
@@ -687,6 +687,9 @@ void check_super_block(e2fsck_t ctx)
if (should_be)
ext2fs_group_desc_csum_set(fs, i);
+ /* If the user aborts e2fsck by typing ^C, stop right away */
+ if (ctx->flags & E2F_FLAG_SIGNAL_MASK)
+ return;
}
/*