diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-03 15:50:50 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2019-07-03 15:50:50 +0000 |
commit | 2d0e823aa9f574fa0291f716c8a7e45bafe464d3 (patch) | |
tree | 521495c64670033ff46d04b655a2c34a3411aac8 /doc/s6-fdholder-list.html | |
parent | 1d69f26f58e72ceaab5aeda7df874faf7b46a5f3 (diff) | |
download | s6-2d0e823aa9f574fa0291f716c8a7e45bafe464d3.tar.xz |
Update doc to reflect the removal of s6-fdholder-*c programs
Diffstat (limited to 'doc/s6-fdholder-list.html')
-rw-r--r-- | doc/s6-fdholder-list.html | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/doc/s6-fdholder-list.html b/doc/s6-fdholder-list.html index d4c2f34..feea993 100644 --- a/doc/s6-fdholder-list.html +++ b/doc/s6-fdholder-list.html @@ -30,23 +30,34 @@ </pre> <ul> - <li> s6-fdholder-list executes into <tt><a href="s6-ipcclient.html">s6-ipcclient</a> <em>path</em> -<a href="s6-fdholder-listc.html">s6-fdholder-listc</a> <em>id</em></tt>. It does nothing else: it is just a -convenience program. The <a href="s6-ipcclient.html">s6-ipcclient</a> program connects -to a Unix socket at <em>path</em>, and the -<a href="s6-fdholder-listc.html">s6-fdholder-listc</a> program transmits -the instruction over the socket, and gets and prints the result. </li> + <li> <tt>s6-fdholder-list</tt> connects to a +<a href="s6-fdholderd.html">s6-fdholderd</a> server process listening on +<em>path</em>. </li> + <li> It gets the list of identifiers corresponding to the currently held +file descriptors. It prints that list to stdout, one per line. </li> </ul> <h2> Options </h2> <ul> -<li> <tt>-t <em>timeout</em></tt> : if the operation cannot be + <li> <tt>-t <em>timeout</em></tt> : if the operation cannot be processed in <em>timeout</em> milliseconds, then fail with an error message. Communications with the server should be near-instant, so this option is only here to protect users against programming errors (connecting to the wrong socket, for instance). </li> </ul> +<h2> Exit codes </h2> + +<ul> + <li> 0: success. </li> + <li> 1: the server denied the operation. The meaning of the error messages +is explained <a href="s6-fdholder-errorcodes.html">here</a>. </li> + <li> 100: wrong usage. </li> + <li> 111: system call failed - that includes attempting to connect to a +nonexistent socket, or one where no <a href="s6-fdholderd.html">s6-fdholderd</a> +daemon is listening. </li> +</ul> + </body> </html> |