From e867e039bbb189567a18ea0c5415902c078ae1eb Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Wed, 19 May 2021 11:12:27 +0200 Subject: [PATCH] Follow-up, document SIGINT/SIGPWR in comment, add missing include Signed-off-by: Joachim Wiberg --- src/sig.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sig.c b/src/sig.c index 77878570..d25cfe6a 100644 --- a/src/sig.c +++ b/src/sig.c @@ -55,7 +55,7 @@ * SIGINT * Sent from kernel when the CTRL-ALT-DEL key combo is pressed. * SysV init and systemd default to reboot with `shutdown -r`. - * Finit currently forwards this to SIGTERM. + * Finit defaults to nothing but sets sys/key/ctrlaltdel condition. * * SIGWINCH * Sent from kernel when the KeyboardSignal key is pressed. Some @@ -66,7 +66,7 @@ * Sent from a power daemon, like powstatd(8), on changes to the * UPS status. Traditionally SysV init read /etc/powerstatus and * acted on "OK", "FAIL", or "LOW" and then removed the file. - * Finit currently forwards this to SIGUSR2. + * Finit defaults to nothing but sets sys/pwr/fail condition. */ #include @@ -76,6 +76,7 @@ #include #include "finit.h" +#include "cond.h" #include "conf.h" #include "config.h" #include "helpers.h"