aboutsummaryrefslogtreecommitdiffstats
path: root/doc/libstddjb/selfpipe.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-04-28 08:44:56 +0000
committerLaurent Bercot <ska@appnovation.com>2025-04-28 08:44:56 +0000
commite92e5cbc9c42a7f926eb4b25fdf6e52ec9d2fa4c (patch)
tree13984417993446fd673e45076296920b023bc076 /doc/libstddjb/selfpipe.html
parent3d15149f5d02339fa5d6a9ec35ef067791f772ef (diff)
downloadskalibs-e92e5cbc9c42a7f926eb4b25fdf6e52ec9d2fa4c.tar.gz
Update docs to latest posix version
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/libstddjb/selfpipe.html')
-rw-r--r--doc/libstddjb/selfpipe.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/libstddjb/selfpipe.html b/doc/libstddjb/selfpipe.html
index 54c0f36..ebed941 100644
--- a/doc/libstddjb/selfpipe.html
+++ b/doc/libstddjb/selfpipe.html
@@ -219,12 +219,12 @@ be trapped anymore.
<li> The selfpipe library uses a global pipe;
so, it's theoretically not safe for multithreading. However, as long as you dedicate
one thread to signal handling and block signals in all the other threads
-(see <a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_sigmask.html">pthread_sigmask()</a>)
+(see <a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/pthread_sigmask.html">pthread_sigmask()</a>)
then you should be able to use the selfpipe in the thread that handles
signals without trouble. Since reading the selfpipe involves waiting for
a file descriptor to become readable, it is recommended to do this in a
thread that will already have a regular input/output loop (via
-<a href="https://pubs.opengroup.org/onlinepubs/9699919799/functions/poll.html">poll()</a>
+<a href="https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html">poll()</a>
or <a href="iopause.html">iopause()</a>) so you can just add the selfpipe
to the list of fds you're reading on. </li>
<li> In rare cases, the self-pipe can theoretically be filled, if some