Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #31990

Re: Linux Embedded: how to get info from a running service

From Grant Edwards <invalid@invalid.invalid>
Newsgroups comp.arch.embedded
Subject Re: Linux Embedded: how to get info from a running service
Date 2023-08-09 13:00 +0000
Organization PANIX Public Access Internet and UNIX, NYC
Message-ID <ub02mb$16r$1@reader2.panix.com> (permalink)
References (3 earlier) <uatjk9$3edog$1@dont-email.me> <uatm5a$39nhe$2@dont-email.me> <uats09$3fprh$1@dont-email.me> <uavf4f$3qf61$1@dont-email.me> <uavipa$3s6gi$1@dont-email.me>

Show all headers | View raw


On 2023-08-09, David Brown <david.brown@hesbynett.no> 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/

Back to comp.arch.embedded | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Linux Embedded: how to get info from a running service pozz <pozzugno@gmail.com> - 2023-08-07 23:28 +0200
  Re: Linux Embedded: how to get info from a running service David Brown <david.brown@hesbynett.no> - 2023-08-08 12:27 +0200
    Re: Linux Embedded: how to get info from a running service pozz <pozzugno@gmail.com> - 2023-08-08 14:59 +0200
      Re: Linux Embedded: how to get info from a running service Grant Edwards <invalid@invalid.invalid> - 2023-08-08 14:31 +0000
      Re: Linux Embedded: how to get info from a running service David Brown <david.brown@hesbynett.no> - 2023-08-08 16:31 +0200
        Re: Linux Embedded: how to get info from a running service pozz <pozzugno@gmail.com> - 2023-08-08 17:14 +0200
          Re: Linux Embedded: how to get info from a running service David Brown <david.brown@hesbynett.no> - 2023-08-08 18:54 +0200
            Re: Linux Embedded: how to get info from a running service pozz <pozzugno@gmail.com> - 2023-08-09 09:27 +0200
              Re: Linux Embedded: how to get info from a running service David Brown <david.brown@hesbynett.no> - 2023-08-09 10:29 +0200
                Re: Linux Embedded: how to get info from a running service Grant Edwards <invalid@invalid.invalid> - 2023-08-09 13:00 +0000

csiph-web