0

I want to pass Unix file descriptor from one local (same machine processes) process to another process. Which are the IPCs mechanism useful from below?

PIPE/FIFO/Message Queue/ Shared Memory/ Socket / TLI / stream/ RPC**
Gert Arnold
  • 105,341
  • 31
  • 202
  • 291
Mfef Ewf
  • 11
  • 1
  • 2
    [Can I share a file descriptor to another process on linux or are they local to the process?](http://stackoverflow.com/questions/2358684/) – masoud Mar 18 '13 at 08:18

1 Answers1

2

The canonical way of passing a file descriptor from one process to the other is using Unix domain sockets, via the ancillary data of sendmsg and recvmsg.

cnicutar
  • 178,505
  • 25
  • 365
  • 392