about summary refs log tree commit diff
path: root/posix/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/fork.c')
-rw-r--r--posix/fork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/fork.c b/posix/fork.c
index 987916a175..cee5ae83c8 100644
--- a/posix/fork.c
+++ b/posix/fork.c
@@ -45,7 +45,7 @@ __libc_fork (void)
      requirement for fork (Austin Group tracker issue #62) this is
      best effort to make is async-signal-safe at least for single-thread
      case.  */
-  bool multiple_threads = __libc_single_threaded_internal == 0;
+  bool multiple_threads = !SINGLE_THREAD_P;
   uint64_t lastrun;
 
   lastrun = __run_prefork_handlers (multiple_threads);