From: Kamil Rytarowski Date: Mon, 14 Sep 2020 08:10:49 +0000 (+0200) Subject: [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace() X-Git-Tag: llvmorg-13-init~12215 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0008fb343704bafc3469703be930b8a65d7c47fa;p=platform%2Fupstream%2Fllvm.git [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace() --- 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_);