Skip to content

Commit abc394c

Browse files
committed
[sanitizer] Fix-forward "[sanitizer] Print diagnostic if ptrace syscall fails #151406"
Use internal__exit instead of _exit Buildbot: https://lab.llvm.org/buildbot/#/builders/174/builds/22276
1 parent a708b4b commit abc394c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,13 +426,13 @@ static void TestPTrace() {
426426
if (internal_iserror(pid, &rverrno)) {
427427
Report("WARNING: TestPTrace() failed to fork (errno %d)\n", rverrno);
428428
}
429-
_exit(-1);
429+
internal__exit(-1);
430430
}
431431

432432
if (pid == 0) {
433433
// Child subprocess
434434
internal_ptrace(PTRACE_ATTACH, 0, nullptr, nullptr);
435-
_exit(0);
435+
internal__exit(0);
436436
} else {
437437
int wstatus;
438438
internal_waitpid(pid, &wstatus, 0);

0 commit comments

Comments
 (0)