Yes, you can pass a file descriptor to any other process. The only requirement is that you open a Unix domain socket to communicate between the two processes.
Can a file descriptor be shared between unrelated processes? [duplicate]
-
23-09-2022 - |
문제
The answer to this question shows how to share a file descriptor between two processes. I am unclear on whether this is possible with any process or only related processes. For example, is it possible to open an unnamed pipe and pass the read or write file descriptor to another unrelated process on a unix system?
해결책
제휴하지 않습니다 StackOverflow