aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-11-02 09:07:49 -0600
committerRob Landley <rob@landley.net>2015-11-02 09:07:49 -0600
commit729401d267d6ce53443505210dd3dd9471056155 (patch)
tree44f6dcad29c53fcbd4f247d57eb65e16c6350454
parentd20b9ff3ee0f1014a740baed908dc0a08c646fb6 (diff)
downloadtoybox-729401d267d6ce53443505210dd3dd9471056155.tar.gz
Explain signals in oneit help text.
-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