From 729401d267d6ce53443505210dd3dd9471056155 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Mon, 2 Nov 2015 09:07:49 -0600 Subject: Explain signals in oneit help text. --- toys/other/oneit.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'toys/other') 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 -- cgit v1.2.3