[sanitizer] Fix nolibc internal_sleep
Reviewers: kubamracek, vitalybuka
Subscribers: delcypher, llvm-commits, #sanitizers
@@ -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;
