[PATCH] [aarch64] use clone(SIGCHLD, 0) instead of fork()
Greg Fitzgerald
gregf at codeaurora.org
Fri May 23 15:53:31 PDT 2014
Hi kcc,
Compilation fix for the common sanitizer library on AArch64
http://reviews.llvm.org/D3903
Files:
lib/sanitizer_common/sanitizer_linux.cc
Index: lib/sanitizer_common/sanitizer_linux.cc
===================================================================
--- lib/sanitizer_common/sanitizer_linux.cc
+++ 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.9781.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140523/9e60119b/attachment.bin>
More information about the llvm-commits
mailing list