[CP] print core file size when CRASH ERROR

This commit is contained in:
obdev
2022-11-08 06:05:35 +00:00
committed by wangzelin.wzl
parent 92233f2269
commit c36622e1c8
4 changed files with 11 additions and 2 deletions

View File

@ -348,6 +348,9 @@ static void print_limit(const char *name, const int resource)
_OB_LOG(INFO, "[%s] %-24s = %ld", __func__, name, limit.rlim_cur);
}
}
if (RLIMIT_CORE == resource) {
g_rlimit_core = limit.rlim_cur;
}
}
static void print_all_limits()