From 51e253133a87a72cfde9ce6bd8c12544b54721cb Mon Sep 17 00:00:00 2001
From: Laurent Bercot
Date: Fri, 7 Apr 2023 01:17:04 +0000
Subject: Add selfpipe_fd(), refactor selfpipe
Signed-off-by: Laurent Bercot
---
doc/libstddjb/selfpipe.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
(limited to 'doc/libstddjb')
diff --git a/doc/libstddjb/selfpipe.html b/doc/libstddjb/selfpipe.html
index 7c13e0e..54c0f36 100644
--- a/doc/libstddjb/selfpipe.html
+++ b/doc/libstddjb/selfpipe.html
@@ -182,6 +182,21 @@ it's a serious one and your system has become very unstable.
is positive, it is the number of the signal that was caught.
+ Accessing the selfpipe
+
+
+int fd = selfpipe_fd() ;
+
+
+
+ Sometimes you need to access the fd of the selfpipe in two
+very distinct translation units (typically to poll on it), and you
+rightly don't want to add a global variable to store it, especially
+since it's already stored in a global internal variable in skalibs.
+No need to bloat your binary anymore: selfpipe_fd() will
+now retrieve the value for you, wherever you are.
+
+
Finishing
--
cgit v1.2.3