Commit e86d35c3 authored by Al Viro's avatar Al Viro

do_coredump(): don't wait for thaw if coredump has already been interrupted

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0d5cadb8
...@@ -654,10 +654,11 @@ void do_coredump(siginfo_t *siginfo) ...@@ -654,10 +654,11 @@ void do_coredump(siginfo_t *siginfo)
goto close_fail; goto close_fail;
if (displaced) if (displaced)
put_files_struct(displaced); put_files_struct(displaced);
if (!dump_interrupted()) {
file_start_write(cprm.file); file_start_write(cprm.file);
core_dumped = !dump_interrupted() && binfmt->core_dump(&cprm); core_dumped = binfmt->core_dump(&cprm);
file_end_write(cprm.file); file_end_write(cprm.file);
}
if (ispipe && core_pipe_limit) if (ispipe && core_pipe_limit)
wait_for_dump_helpers(cprm.file); wait_for_dump_helpers(cprm.file);
close_fail: close_fail:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment