OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20b9ff
)
Explain signals in oneit help text.
author
Rob Landley
<rob@landley.net>
Mon, 2 Nov 2015 15:07:49 +0000
(09:07 -0600)
committer
Rob Landley
<rob@landley.net>
Mon, 2 Nov 2015 15:07:49 +0000
(09:07 -0600)
toys/other/oneit.c
patch
|
blob
|
history
diff --git
a/toys/other/oneit.c
b/toys/other/oneit.c
index
cc510c1
..
0e95a10
100644
(file)
--- 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