Re: [PATCH] pthread_atfork.3: Remove a confusing reference to the current thread

Florian Weimer
2022-04-12T14:31:21Z

* Arjun Shankar:

> The reference to "this thread" in the DESCRIPTION of pthread_atfork(3)
> could be incorrectly interpreted to mean that only handlers registered
> by the thread calling fork(2) are executed. Therefore, remove the
> reference.
>
> Signed-off-by: Arjun Shankar <arjun@redhat.com>
> ---
> man3/pthread_atfork.3 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/man3/pthread_atfork.3 b/man3/pthread_atfork.3
> index b727cb48e..db5e210d4 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.
> The handlers are executed in the context of the thread that calls
> .BR fork (2).
> .PP

I suspect the intent was to indicate that the handlers are called on the
thread calling fork, but that's probably clear enough from the context?

Thanks,
Florian