chiark / gitweb /
main: don't mount /sys, /dev and friends when we run with PID != 1
authorLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2013 20:36:38 +0000 (21:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Mar 2013 20:39:07 +0000 (21:39 +0100)
commitc1dae1b3c9729fb8ab749dd4e2dad07e0fad7ed8
tree31f3a466c5d23c687a524fd9adbe9309dc465a45
parent1c17cbed55376b13ed09ec91cd888cb810451026
main: don't mount /sys, /dev and friends when we run with PID != 1

Back from old times when we developed systemd on non-systemd hosts we
still mounted the missing directories such as the cgroup stuff even when
running with a PID != 1. There's no point for that anymore, so let's
just do that if we are actually PID 1, and never otherwise.

https://bugs.freedesktop.org/show_bug.cgi?id=62354
src/core/main.c