[PATCH] D55692: [sanitizer] Fix nolibc internal_sleep

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 14 00:13:04 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL349134: [sanitizer] Fix nolibc internal_sleep (authored by MaskRay, committed by ).

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55692/new/

https://reviews.llvm.org/D55692

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
@@ -433,7 +433,7 @@
 
 unsigned int internal_sleep(unsigned int seconds) {
   struct timespec ts;
-  ts.tv_sec = 1;
+  ts.tv_sec = seconds;
   ts.tv_nsec = 0;
   int res = internal_syscall(SYSCALL(nanosleep), &ts, &ts);
   if (res) return ts.tv_sec;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55692.178190.patch
Type: text/x-patch
Size: 507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181214/878b13b1/attachment.bin>


More information about the llvm-commits mailing list