diff options
Diffstat (limited to 'compiler-rt/lib/asan/asan_posix.cc')
| -rw-r--r-- | compiler-rt/lib/asan/asan_posix.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/compiler-rt/lib/asan/asan_posix.cc b/compiler-rt/lib/asan/asan_posix.cc index 78ec98d671b..1b8b7c2dda1 100644 --- a/compiler-rt/lib/asan/asan_posix.cc +++ b/compiler-rt/lib/asan/asan_posix.cc @@ -69,14 +69,6 @@ void AsanDisableCoreDumper() { setrlimit(RLIMIT_CORE, &nocore); } -void AsanDie() { - if (FLAG_sleep_before_dying) { - Report("Sleeping for %d second(s)\n", FLAG_sleep_before_dying); - sleep(FLAG_sleep_before_dying); - } - _exit(FLAG_exitcode); -} - int GetPid() { return getpid(); } @@ -85,6 +77,14 @@ uintptr_t GetThreadSelf() { return (uintptr_t)pthread_self(); } +void SleepForSeconds(int seconds) { + sleep(seconds); +} + +void Exit(int exitcode) { + return _exit(exitcode); +} + int AtomicInc(int *a) { #ifdef ANDROID return __atomic_inc(a) + 1; |

