From d3e84ddb885e9d5f0ae9930eb905910e3a81f157 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 6 Nov 2013 02:03:04 +0100 Subject: 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/machine/machined.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/machine/machined.h') diff --git a/src/machine/machined.h b/src/machine/machined.h index dfb63bd7f1..3f07d4dd8e 100644 --- a/src/machine/machined.h +++ b/src/machine/machined.h @@ -40,6 +40,7 @@ struct Manager { Hashmap *machines; Hashmap *machine_units; + Hashmap *machine_leaders; LIST_HEAD(Machine, machine_gc_queue); }; -- cgit v1.2.3-54-g00ecf