Commit 20d25798 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't report coredumps if they were disabled.

Some operating systems still report core-dumps in process exit-status
even though the core-dump was eliminated with setrlimit(2).
parent f23d3944
......@@ -554,7 +554,8 @@ mgt_reap_child(void)
#ifdef WCOREDUMP
if (WCOREDUMP(status)) {
VSB_cat(vsb, " (core dumped)");
exit_status |= 0x80;
if (!MGT_FEATURE(FEATURE_NO_COREDUMP))
exit_status |= 0x80;
VSC_C_mgt->child_dump++;
}
#endif
......
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