未验证 提交 4d6eeac0 编写于 作者: S shuxinyiA 提交者: Gitee

修改 MUSL_SIGNAL_HOOK 和 MUSL_SIGNAL_UNHOOK

Signed-off-by: NshuxinyiA <zhangcui11@huawei.com>
上级 1ed826fd
......@@ -357,14 +357,14 @@ static void __install_malloc_hook_signal_handler()
struct sigaction actionInstallHook = {};
actionInstallHook.sa_handler = __install_malloc_hook;
sigemptyset(&actionInstallHook.sa_mask);
sigaddset(&actionInstallHook.sa_mask, SIGUNHOOK);
sigaction(SIGHOOK, &actionInstallHook, NULL);
sigaddset(&actionInstallHook.sa_mask, MUSL_SIGNAL_UNHOOK);
sigaction(MUSL_SIGNAL_HOOK, &actionInstallHook, NULL);
struct sigaction actionDef = {};
actionDef.sa_handler = __uninstal_malloc_hook;
sigemptyset(&actionDef.sa_mask);
sigaddset(&actionDef.sa_mask, SIGHOOK);
sigaction(SIGUNHOOK, &actionDef, NULL);
sigaddset(&actionDef.sa_mask, MUSL_SIGNAL_HOOK);
sigaction(MUSL_SIGNAL_UNHOOK, &actionDef, NULL);
}
static void __initialize_malloc()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册