]> git.ipfire.org Git - thirdparty/lxc.git/commit
Use container's /run/utmp if it exists
authorSerge E. Hallyn <serge.hallyn@canonical.com>
Sun, 7 Aug 2011 10:25:07 +0000 (12:25 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Sun, 7 Aug 2011 10:25:07 +0000 (12:25 +0200)
commit4cb05a609b308f0ddf37a9f4bd65e1a37c6b607e
tree5524afde597bb68c85c48a1a82d67dbe15eaafb2
parent3e9c97c17a86ff52897bdb965182c36248cdb97a
Use container's /run/utmp if it exists

If /var/run is a symlink to /run in the container, then opening
/proc/<pid>/root/var/run/utmp will end up opening the host's utmp.
Therefore the hack detecting shutdown through utmp fails.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/utmp.c