Follow-up, document SIGINT/SIGPWR in comment, add missing include

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2021-05-27 11:18:06 +02:00
parent 1d1087a3b3
commit e867e039bb
+3 -2
View File
@@ -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 <dirent.h>
@@ -76,6 +76,7 @@
#include <lite/lite.h>
#include "finit.h"
#include "cond.h"
#include "conf.h"
#include "config.h"
#include "helpers.h"