public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pthread_atfork.3: wfix.
@ 2021-11-09 22:27 enh
  2021-11-10  8:11 ` Florian Weimer
  0 siblings, 1 reply; 7+ messages in thread
From: enh @ 2021-11-09 22:27 UTC (permalink / raw)
  To: linux-man; +Cc: Alejandro Colomar (man-pages), Michael Kerrisk (man-pages)

Clarify that the pthread_atfork() callback list is a global, not
per-thread.

The use of "this thread" implied to some readers that pthread_atfork()
maintained per-thread lists of callbacks. Given that the next sentence
already explains that the callbacks are run in the context of the thread
that calls fork(), I actually think it would be fine not to mention
threads at all in the earlier sentence, but for now I've gone with what
I think was intended to be written.
---
 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..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
-- 
2.34.0.rc0.344.g81b53c2807-goog

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-07-26 17:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 22:27 [PATCH] pthread_atfork.3: wfix enh
2021-11-10  8:11 ` Florian Weimer
2021-11-11 21:49   ` Alejandro Colomar (man-pages)
2021-11-11 22:42     ` enh
2021-11-22 17:02       ` Alejandro Colomar (man-pages)
     [not found]         ` <CAJgzZoqDAMuk8j-kwzxkKMSbs4z2ZiGzbQuUkrouXitgW+RYmg@mail.gmail.com>
2022-07-26 11:06           ` Alejandro Colomar
2022-07-26 17:09             ` enh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox