init: halt on SIGPWR too
authorBogdan Purcareata <bogdan.purcareata@freescale.com>
Tue, 26 Nov 2013 12:54:48 +0000 (13:54 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 26 Nov 2013 12:54:48 +0000 (13:54 +0100)
commit760fc6debcba8cb5ca8d8e2252fac3757c453e11
treefde19f0e554fd9839a3cfcd2cb20385f6e77c24b
parentcffe28ef876a6fe8a8154321bf5feb409d87cf1a
init: halt on SIGPWR too

Most init processes implement a handler for SIGPWR that gracefully
stops all child processes when shutting down a machine. Some other
technologies rely on this signal - e.g. Busybox powered LXC
containers.

This patch makes busybox init halt when receiving SIGPWR.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
init/init.c