diff options
Diffstat (limited to 'gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp')
-rw-r--r-- | gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp b/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp index adb7330..c036ebe 100644 --- a/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp +++ b/gwp_asan/platform_specific/guarded_pool_allocator_posix.cpp @@ -98,6 +98,10 @@ size_t GuardedPoolAllocator::getPlatformPageSize() { } void GuardedPoolAllocator::installAtFork() { + static bool AtForkInstalled = false; + if (AtForkInstalled) + return; + AtForkInstalled = true; auto Disable = []() { if (auto *S = getSingleton()) S->disable(); |