chiark / gitweb /
machined: keep track of the initial leader PID of a machine
authorLennart Poettering <lennart@poettering.net>
Wed, 6 Nov 2013 01:03:04 +0000 (02:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 6 Nov 2013 01:31:35 +0000 (02:31 +0100)
commitd3e84ddb885e9d5f0ae9930eb905910e3a81f157
tree06f15d176ed35af4b825e901e73d8c8629473963
parentcd6f997f71c3aba16aa08226d423d14cbc787f82
machined: keep track of the initial leader PID of a machine

This way we can without races always determine the machine for a leader
PID. This allows machine managers to query the machine for a forked off
container/VM  without a race where the child might already have died
before we could read the cgroup information from /proc/$PID/cgroup.
src/login/logind-core.c
src/machine/machine.c
src/machine/machined.c
src/machine/machined.h