Nп/п : 27 из 60
 От   : Grant Edwards                       2:5075/128        09 авг 23 13:00:59
 К    : David Brown                                           09 авг 23 16:15:34
 Тема : Re: Linux Embedded: how to get info from a running service
----------------------------------------------------------------------------------
                                                                                 
@MSGID: 1@reader2.panix.com> ef83d232
@REPLY: 1@dont-email.me> c0d42106
@REPLYADDR Grant Edwards
<invalid@invalid.invalid>
@REPLYTO 2:5075/128 Grant Edwards
@CHRS: CP866 2
@RFC: 1 0
@RFC-Message-ID: 1@reader2.panix.com>
@RFC-References: 1@dont-email.me>
1@dont-email.me> 1@dont-email.me> 1@dont-email.me>
2@dont-email.me> 1@dont-email.me> 1@dont-email.me>
1@dont-email.me>
@TZUTC: -0000
@PID: slrn/1.0.3 (Linux)
@TID: FIDOGATE-5.12-ge4e8b94
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-socke
ts-dcbbf5b3b6ec

https://www.sobyte.net/post/2022-01/pass-fd-over-domain-socket/
--- slrn/1.0.3 (Linux)
 * Origin: PANIX Public Access Internet and UNIX, NYC (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх