【CP】patch to opensource

This commit is contained in:
jg0
2021-07-23 18:36:23 +08:00
committed by wangzelin.wzl
parent 8160997f02
commit f2f91f98c6
23 changed files with 20418 additions and 20563 deletions

View File

@ -65,7 +65,7 @@ void ob_signal_handler(int sig, siginfo_t* si, void*)
void coredump_cb(int sig, siginfo_t* si)
{
send_request_and_wait(VERB_LEVEL_2, syscall(SYS_gettid) /*exclude_id*/);
#define MINICORE 1
#define MINICORE 0
#if MINICORE
int pid = 0;
if ((pid = fork()) != 0) {
@ -107,6 +107,7 @@ void coredump_cb(int sig, siginfo_t* si)
#if MINICORE
} else {
// child
prctl(PR_SET_NAME, "minicoredump");
int64_t total_size = 0;
if (lib::g_mem_cutter != nullptr) {
lib::g_mem_cutter->cut(total_size);