X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=fs%2Fcoredump.c;h=dafafbafa7313e2e7ef46d05619482b2edf5645d;hb=6019958d146a4f127dae727a930f902c92531e6e;hp=a9abe313e8d5a48622bd3328787db8c099bee942;hpb=14a9e5c09d13aa36b88ea54b8b6134b60ff2a410;p=cascardo%2Flinux.git diff --git a/fs/coredump.c b/fs/coredump.c index a9abe313e8d5..dafafbafa731 100644 --- a/fs/coredump.c +++ b/fs/coredump.c @@ -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: