aboutsummaryrefslogtreecommitdiff
path: root/toys/other
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other')
-rw-r--r--toys/other/oneit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toys/other/oneit.c b/toys/other/oneit.c
index cc510c15..0e95a104 100644
--- a/toys/other/oneit.c
+++ b/toys/other/oneit.c
@@ -22,6 +22,9 @@ config ONEIT
Spawns a single child process (because PID 1 has signals blocked)
in its own session, reaps zombies until the child exits, then
reboots the system (or powers off with -p, or restarts the child with -r).
+
+ Responds to SIGUSR1 by halting the system, SIGUSR2 by powering off,
+ and SIGTERM or SIGINT reboot.
*/
#define FOR_oneit