From c3150e36d6e3d8392c5801a19b7f63daa5551f37 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 27 Nov 2017 12:44:40 +0000 Subject: Add s6_fdholder_start/end, prepare for 2.6.2.0 --- doc/libs6/s6-fdholder.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc/libs6') diff --git a/doc/libs6/s6-fdholder.html b/doc/libs6/s6-fdholder.html index af6df38..0a2413b 100644 --- a/doc/libs6/s6-fdholder.html +++ b/doc/libs6/s6-fdholder.html @@ -91,6 +91,28 @@ started by s6-ipcclient, both fds 6 and 7 are open (and refer to the same socket), so you should close both.

+

+ Alternatively, if your connection to s6-fdholderd has not been created yet, +you can use the following functions: +

+ +

int s6_fdholder_start (s6_fdholder_t *a, char const *path, tain_t const *deadline, tain_t *stamp)

+ +

+ Starts a session with a s6-fdholderd +instance listening on path. a must be initialized to +S6_FDHOLDER_ZERO before calling this function. On success, returns nonzero +and a can be used as a handle for the next s6_fdholder_* +function calls. On failure, returns 0, and sets errno. +

+ +

void s6_fdholder_end (s6_fdholder_t *a)

+ +

+ Ends the current session and frees all allocated resources. If needed, +a is immediately reusable for another s6_fdholder_start call. +

+

Storing a fd

-- 
cgit v1.2.3