Skip to content

Commit

Permalink
On AArch64, use clone() instead of fork()
Browse files Browse the repository at this point in the history
Patch by Gideon Billings.

Differential Revision: http://reviews.llvm.org/D3903

llvm-svn: 209641
  • Loading branch information
Greg Fitzgerald committed May 26, 2014
1 parent 3bc64d5 commit 7b15cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
Original file line number Diff line number Diff line change
@@ -508,7 +508,11 @@ uptr internal_sigaltstack(const struct sigaltstack *ss,
}

int internal_fork() {
#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS
return internal_syscall(SYSCALL(clone), SIGCHLD, 0);
#else
return internal_syscall(SYSCALL(fork));
#endif
}

#if SANITIZER_LINUX

0 comments on commit 7b15cf8

Please sign in to comment.