Re: [PATCH] pthread_atfork.3: wfix.

Florian Weimer
2021-11-10T08:12:27Z

> diff --git a/man3/pthread_atfork.3 b/man3/pthread_atfork.3
> index b727cb48e..3e61e797f 100644
> --- a/man3/pthread_atfork.3
> +++ b/man3/pthread_atfork.3
> @@ -39,7 +39,7 @@ The
> .BR pthread_atfork ()
> function registers fork handlers that are to be executed when
> .BR fork (2)
> -is called by this thread.
> +is called by any thread in a process.
> The handlers are executed in the context of the thread that calls
> .BR fork (2).
> .PP

There's another confusing “thread” reference further below:
“pthread_atfork() may be called multiple times by a thread, to register
multiple handlers for each phase.” I think that should be replaced by
“process” for clarity.

Thanks,
Florian