Skip to content

Commit

Permalink
do_coredump(): don't wait for thaw if coredump has already been inter…
Browse files Browse the repository at this point in the history
…rupted

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 4, 2013
1 parent 0d5cadb commit e86d35c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,11 @@ void do_coredump(siginfo_t *siginfo)
goto close_fail;
if (displaced)
put_files_struct(displaced);
file_start_write(cprm.file);
core_dumped = !dump_interrupted() && binfmt->core_dump(&cprm);
file_end_write(cprm.file);

if (!dump_interrupted()) {
file_start_write(cprm.file);
core_dumped = binfmt->core_dump(&cprm);
file_end_write(cprm.file);
}
if (ispipe && core_pipe_limit)
wait_for_dump_helpers(cprm.file);
close_fail:
Expand Down

0 comments on commit e86d35c

Please sign in to comment.