Can I pass a file descriptor over a 0mq (zeromq) ipc socket?
问题 I have a master process and several workers, communicating using 0mq 'ipc://' sockets (UNIX domain sockets). I want to pass a file descriptor from the master to a worker, along with a message. I know that 'raw' UNIX domain sockets can be used to pass a file descriptor from one process to another, but can I do it with my zeromq sockets? I don't care about portability, and frankly I don't care if its a slightly dirty solution. Is there any way? Thanks in advance. 回答1: Hackiest method would be