tree-wide: extend $LISTEN_FDS protocol with $LISTEN_PIDFDID
Although extremely unlikely, there is a race present in solely checking the $LISTEN_PID environment variable, due to PID recycling. Fix that by introducing $LISTEN_PIDFDID, which contains the 64-bit ID of a pidfd for the child process that is not subject to recycling.
This commit is contained in:
committed by
Lennart Poettering
parent
93b6d43253
commit
c7a444a9c1
@@ -4207,6 +4207,7 @@ StandardInputData=V2XigLJyZSBubyBzdHJhbmdlcnMgdG8gbG92ZQpZb3Uga25vdyB0aGUgcnVsZX
|
||||
<varlistentry>
|
||||
<term><varname>$LISTEN_FDS</varname></term>
|
||||
<term><varname>$LISTEN_PID</varname></term>
|
||||
<term><varname>$LISTEN_PIDFDID</varname></term>
|
||||
<term><varname>$LISTEN_FDNAMES</varname></term>
|
||||
|
||||
<listitem><para>Information about file descriptors passed to a
|
||||
|
||||
Reference in New Issue
Block a user