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
  • 100,019
  • 29
  • 193
  • 278
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
  • 172,020
  • 25
  • 347
  • 381