diff options
author | Fangrui Song <maskray@google.com> | 2018-12-14 08:09:43 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-12-14 08:09:43 +0000 |
commit | 72553161017479d64a67316c7a9c9bb592dbe326 (patch) | |
tree | 015a90ccae7a364ede257f8bdea23dd1766b8377 | |
parent | 8183d2dfd75a379fd69b399ff9470a243b9fcd2d (diff) |
[sanitizer] Fix nolibc internal_sleep
Reviewers: kubamracek, vitalybuka
Reviewed By: vitalybuka
Subscribers: delcypher, llvm-commits, #sanitizers
Differential Revision: https://reviews.llvm.org/D55692
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@349134 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_linux.cc b/lib/sanitizer_common/sanitizer_linux.cc index f37d6690d..6cfb61506 100644 --- a/lib/sanitizer_common/sanitizer_linux.cc +++ b/lib/sanitizer_common/sanitizer_linux.cc @@ -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; |