[PATCH] D55692: [sanitizer] Fix nolibc internal_sleep
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 13 23:32:00 PST 2018
MaskRay created this revision.
MaskRay added reviewers: kubamracek, vitalybuka.
Herald added subscribers: Sanitizers, llvm-commits, delcypher.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D55692
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
@@ -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.178187.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181214/f0b07acf/attachment.bin>
More information about the llvm-commits
mailing list