]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/virt: try the /proc/1/sched hack also for PID1
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Apr 2019 11:37:31 +0000 (13:37 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 29 Apr 2019 13:36:26 +0000 (15:36 +0200)
commit342bed02084c4396dd2f1054bd559bfb2699cfcb
tree1c01d5a7c833878b2ba4a3f9d72ea00c3a091d62
parenta6d04b1a179643685cabda9e489b34f24c287f27
basic/virt: try the /proc/1/sched hack also for PID1

If a container manager does not set $container, we could end up
in a strange situation when detect-virt returns container-other when
run as non-pid-1 and none when run as pid-1.
src/basic/virt.c