[compiler-rt] 0008fb3 - [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace()
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 01:12:41 PDT 2020
Author: Kamil Rytarowski
Date: 2020-09-14T10:12:23+02:00
New Revision: 0008fb343704bafc3469703be930b8a65d7c47fa
URL: https://github.com/llvm/llvm-project/commit/0008fb343704bafc3469703be930b8a65d7c47fa
DIFF: https://github.com/llvm/llvm-project/commit/0008fb343704bafc3469703be930b8a65d7c47fa.diff
LOG: [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace()
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
index 1ed21343254d..63ef00d2750a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp
@@ -131,7 +131,7 @@ bool ThreadSuspender::SuspendAllThreads() {
pl.pl_lwpid = 0;
int val;
- while ((val = ptrace(op, pid_, (void *)&pl, sizeof(pl))) != -1 &&
+ while ((val = internal_ptrace(op, pid_, (void *)&pl, sizeof(pl))) != -1 &&
pl.pl_lwpid != 0) {
suspended_threads_list_.Append(pl.pl_lwpid);
VReport(2, "Appended thread %d in process %d.\n", pl.pl_lwpid, pid_);
More information about the llvm-commits
mailing list