[compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace()
authorKamil Rytarowski <n54@gmx.com>
Mon, 14 Sep 2020 08:10:49 +0000 (10:10 +0200)
committerKamil Rytarowski <n54@gmx.com>
Mon, 14 Sep 2020 08:12:23 +0000 (10:12 +0200)
compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cpp

index 1ed21343254d5fa0f4a372d5e7eee5ba8ecc88a0..63ef00d2750a3c8cacd2340a9c0d1356bc57ab54 100644 (file)
@@ -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_);