chiark / gitweb /
shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BO...
authorLennart Poettering <lennart@poettering.net>
Wed, 5 Sep 2012 22:37:18 +0000 (15:37 -0700)
committerLennart Poettering <lennart@poettering.net>
Wed, 5 Sep 2012 22:55:40 +0000 (15:55 -0700)
commitcb7ec5645e0edf154f0cc8414f5914cb433d0dfe
tree8fa019e36d068cf16005e8327b46ee6d067bb9c0
parent57371e5829a61e5ee6c9f98404dfc729d6c62608
shutdown: in containers, invoke reboot(2), too. Then fallback to exit() if CAP_SYS_BOOT is missing

The kernel's PID namespaces support reboot(2) just fine, so let's make
use of it if possible.
src/core/shutdown.c