Sujet : Re: Python (was Re: I did not inhale)
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.unix.programmerDate : 25. Aug 2024, 16:48:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <151eca5b-ae82-4fee-bf0d-e12851432b44@alumni.caltech.edu>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
User-Agent : Mozilla Thunderbird
On 8/25/24 06:32, Dmitry A. Kazakov wrote:
On 2024-08-25 09:50, Sebastian wrote:
In comp.unix.programmer Dmitry A. Kazakov <mailbox@dmitry-kazakov.de>
wrote:
Windows did many things wrong, but accessing file descriptors by numbers
is beyond even Windows. In Windows a file is an OS object. You access it
getting an opaque handle to. Note that a handle can be marshaled from
one process to another. Try that with process-local numbers!
>
UNIX domain sockets support the passing of file descriptors between
processes.
>
File descriptor (a pointer to) is not file number.
>
You cannot pass number 1 simply because 1 is already in use.
True, but since passing the file descriptor provides you with all you
need to achieve the same functionality, that distinction is unimportant.