Skip to content

Commit e86d35c

Browse files
author
Al Viro
committed
do_coredump(): don't wait for thaw if coredump has already been interrupted
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 0d5cadb commit e86d35c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎fs/coredump.c‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,10 +654,11 @@ void do_coredump(siginfo_t *siginfo)
654654
goto close_fail;
655655
if (displaced)
656656
put_files_struct(displaced);
657-
file_start_write(cprm.file);
658-
core_dumped = !dump_interrupted() && binfmt->core_dump(&cprm);
659-
file_end_write(cprm.file);
660-
657+
if (!dump_interrupted()) {
658+
file_start_write(cprm.file);
659+
core_dumped = binfmt->core_dump(&cprm);
660+
file_end_write(cprm.file);
661+
}
661662
if (ispipe && core_pipe_limit)
662663
wait_for_dump_helpers(cprm.file);
663664
close_fail:

0 commit comments

Comments
 (0)