Skip to content

Commit

Permalink
去掉对glibc的依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Sep 12, 2024
1 parent e7e2524 commit 01d5c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bee/crash/handler_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ namespace bee::crash {
uninstall_handlers();
}
if (info->si_code <= 0 || sig == SIGABRT) {
if (tgkill(getpid(), syscall(__NR_gettid), sig) < 0) {
if (::syscall(SYS_tgkill, getpid(), ::syscall(__NR_gettid), sig) < 0) {
_exit(1);
}
}
Expand Down

0 comments on commit 01d5c26

Please sign in to comment.