[compiler-rt] r349134 - [sanitizer] Fix nolibc internal_sleep
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 14 00:09:44 PST 2018
Author: maskray
Date: Fri Dec 14 00:09:43 2018
New Revision: 349134
URL: http://llvm.org/viewvc/llvm-project?rev=349134&view=rev
Log:
[sanitizer] Fix nolibc internal_sleep
Reviewers: kubamracek, vitalybuka
Reviewed By: vitalybuka
Subscribers: delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D55692
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=349134&r1=349133&r2=349134&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Fri Dec 14 00:09:43 2018
@@ -433,7 +433,7 @@ void internal__exit(int exitcode) {
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;
More information about the llvm-commits
mailing list