[PATCH] [aarch64] use clone(SIGCHLD, 0) instead of fork()

Greg Fitzgerald gregf at codeaurora.org
Mon May 26 16:52:59 PDT 2014


Closed by commit rL209641 (authored by @garious).

http://reviews.llvm.org/D3903

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc

Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
@@ -508,7 +508,11 @@
 }
 
 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3903.9817.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140526/7f931a1e/attachment.bin>


More information about the llvm-commits mailing list