SIGINT handling in runsvdir

Neale Pickett dartcatcher at gmail.com
Mon Mar 2 04:40:46 UTC 2015


I noticed that runsvdir.c doesn't mention SIGINT anywhere. This signal is
sent by the kernel when ctrl-alt-del is pressed, provided
/proc/sys/kernel/ctrl-alt-del is "0".

I'm running runsvdir as PID 1: the last line of /sbin/init (a shell script)
is "exec runsvdir -s /sbin/runit-signal". runit-signal initiates a graceful
shutdown on signals 15 (reboot), 10 (halt), and 12 (power). You can read it
at https://woozle.org/neale/g.cgi/aur/runit-init/tree/usr/bin/runit-signal

Am I intended instead to have PID 1 fork-exec runsvdir, and handle signals,
passing them along?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20150302/2fddcc08/attachment.html>


More information about the busybox mailing list