RECVFD(1)
π recvfd(1) β The recvfd program π
okay so bestie, this page is literally about recvfd, and itβs giving βreceive file descriptors over a socket, then exec a commandβ energy β¨
πΈ SYNOPSIS πΈ
recvfd socket {fd|$VAR} [...] : command arg ...
π¦ DESCRIPTION π¦
recvfd receives one or more file descriptors over a Unix-domain socket (such as those opened with s6-ipcclient (https://skarnet.org/software/s6/s6-ipcclient.html)/s6-ipcserver (https://skarnet.org/software/s6/s6-ipcserver.html) or ucspi-unix (http://untroubled.org/ucspi-unix/)). Another process that has a descriptor for the other end of the socket can send the descriptors using the fd_xfer_send() library function. The received descriptors will not necessarily have the same numeric values, but will refer to the same open file handles, as if by dup(). After receiving the descriptors, recvfd moves them to the descriptor numbers specified on the command line with dup2(), or sets the given environment variables (prefixed with $) to indicate what descriptor numbers were received. Finally, recvfd execs the given command. A colon separates the file descriptors and environment variable names from the command.
This is useful, for example, in network clients that want to use UCSPI client programs to establish connections, but which canβt have all connections opened at startup.
and thatβs the whole page, bestie π the footer is just The recvfd program with empty parentheses β no extra source/version/date listed in this page π«Άβ¨
π¦ where this page comes from
- nixpkgs unstable: fdtools 2024.12.07
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms