4 ms·
Yes. You can send any file descriptor. You might also be interested in socketpair[1], which creates a pair of FDs connected via an anonymous Unix domain socket.
by loosescrews 5y ago
Yes. You can send any file descriptor. You might also be interested in socketpair[1], which creates a pair of FDs connected via an anonymous Unix domain socket. Sending a socketpair over a Unix domain socket is a nice way to establish a new channel of communication.
[1] https://man7.org/linux/man-pages/man2/socketpair.2.html https://man7.org/linux/man-pages/man2/socketpair.2.html