s6
Software
skarnet.org

The s6-fdholder-store program

s6-fdholder-store connects to a fd-holding daemon listening on a Unix domain socket, and gives it a copy of one of its open file descriptors for the daemon to hold.

Interface

     s6-fdholder-store [ -d fd ] [ -T fdtimeout ] [ -t timeout ] path id

Options

Exit codes

Usage example

   s6-ipcserver-socketbinder /tmp/mysocket s6-fdholder-store /service/fdholderd/s MYSOCKET

will open a Unix domain socket, bind it to /tmp/mysocket and listen to incoming connections, then give it to a s6-fdholderd instance listening on /service/fdholderd/s, with no expiration date, with the "MYSOCKET" identifier. Another program will be able to retrieve the socket later, using s6-fdholder-retrieve.