diff options
Diffstat (limited to 'posix/fork.c')
-rw-r--r-- | posix/fork.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/posix/fork.c b/posix/fork.c index 940d6a0955..c471f7b15f 100644 --- a/posix/fork.c +++ b/posix/fork.c @@ -41,7 +41,10 @@ __libc_fork (void) { /* Determine if we are running multiple threads. We skip some fork handlers in the single-thread case, to make fork safer to use in - signal handlers. */ + signal handlers. Although POSIX has dropped async-signal-safe + 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 == 0; __run_fork_handlers (atfork_run_prepare, multiple_threads); |