Path: csiph.com!weretis.net!feeder6.news.weretis.net!panix!.POSTED.localhost!not-for-mail From: Grant Edwards Newsgroups: comp.arch.embedded Subject: Re: Linux Embedded: how to get info from a running service Date: Wed, 9 Aug 2023 13:00:59 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: References: Injection-Date: Wed, 9 Aug 2023 13:00:59 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="localhost:::1"; logging-data="1243"; mail-complaints-to="abuse@panix.com" User-Agent: slrn/1.0.3 (Linux) Xref: csiph.com comp.arch.embedded:31990 On 2023-08-09, David Brown wrote: > On 09/08/2023 09:27, pozz wrote: >> [1] Ghost because it can't be read by any other process. >> > > It can, through a duplicate file descriptor. In practice this is > commonly done by child processes - when you fork(), the child gets a > copy of all the open file descriptors. You can also pass filedescriptors to non-related processes via Unix-domain sockets. https://copyconstruct.medium.com/file-descriptor-transfer-over-unix-domain-sockets-dcbbf5b3b6ec https://www.sobyte.net/post/2022-01/pass-fd-over-domain-socket/