Generating a core dump is overkill if we hit an EIO error from the
hardware. Exit with an error code instead.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
e3464df47b2e83ee160362a897adc1191a922ce9)
}
}
- reraise_fatal(signum);
+ if (g_eio) {
+ // if this was an EIO crash, we don't need to trigger a core dump,
+ // since the problem is hardware, or some layer beneath us.
+ _exit(EIO);
+ } else {
+ reraise_fatal(signum);
+ }
}
void install_standard_sighandlers(void)