2 ms·Passing Open Files Between Processes with Unix Sockets4 points by Perceptes 14y agocnvogel 14y agoIn case you are interested in the "low-level" implementation, there are C example in the manpages (tested on Ubuntu Linux): man 3 cmsg Look for SCM_RIGHTS;