From 29e787d45651294f3658e6e02bda15504bdffe6c Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 11 Jul 2013 16:37:44 +0000 Subject: [PATCH] [sanitizer] Remove optional arguments from clone() invocation. Unbreaks compilation on older systems. Patch by Andy Jost. llvm-svn: 186103 --- .../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc index fffd9bf70da9..d8f3ca5f724f 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc @@ -327,8 +327,8 @@ void StopTheWorld(StopTheWorldCallback callback, void *argument) { // permissions. tracer_thread_argument.mutex.Lock(); pid_t tracer_pid = clone(TracerThread, tracer_stack.Bottom(), - CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_UNTRACED, - &tracer_thread_argument, 0, 0, 0); + CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_UNTRACED, + &tracer_thread_argument); if (tracer_pid < 0) { Report("Failed spawning a tracer thread (errno %d).\n", errno); tracer_thread_argument.mutex.Unlock();