Sujet : Re: Python (was Re: I did not inhale)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shell comp.unix.programmer comp.lang.miscDate : 25. Aug 2024, 23:02:56
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vag9mg$23hhf$6@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
User-Agent : Pan/0.160 (Toresk; )
On Sun, 25 Aug 2024 13:41:50 -0000 (UTC), vallor wrote:
On this Linux system, "man 7 unix", in the section "SCM_RIGHTS", it
explains how the passing mechanism is handled. One paragraph reads:
Commonly, this operation is referred to as "passing a
file descriptor" to another process. However, more
accurately, what is being passed is a reference to an
open file description (see open(2)), and in the re‐
ceiving process it is likely that a different file de‐
scriptor number will be used.
Note the distinction between “file description” (the in-kernel data
structure that stores the context about the open file), and “file
descriptor” (the userland reference to the file description).