diff options
| author | Kamil Rytarowski <n54@gmx.com> | 2018-12-15 08:25:25 +0000 |
|---|---|---|
| committer | Kamil Rytarowski <n54@gmx.com> | 2018-12-15 08:25:25 +0000 |
| commit | 5748bb41337d68896356efb73d65ff296170c5a0 (patch) | |
| tree | 457b4f74cd3f99bb7064453b914b21ba1f2c52d3 | |
| parent | 4790194b19e06cc3d333c89d1616a0e3b05498d2 (diff) | |
| download | bcm5719-llvm-5748bb41337d68896356efb73d65ff296170c5a0.tar.gz bcm5719-llvm-5748bb41337d68896356efb73d65ff296170c5a0.zip | |
Fix internal_sleep() for NetBSD
This is a follow up of a similar fix for Linux from D55692.
llvm-svn: 349257
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc b/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc index 83beb008fab..cdf552c8f24 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_netbsd.cc @@ -202,7 +202,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; CHECK(&_sys___nanosleep50); int res = _sys___nanosleep50(&ts, &ts); |

