diff options
author | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-12 20:18:10 +0000 |
---|---|---|
committer | Masao Uebayashi <uebayasi@cvs.openbsd.org> | 2014-07-12 20:18:10 +0000 |
commit | 894698ab3f603897bffd7993a7f1074e85172047 (patch) | |
tree | e571d148ab102f6dbdd88730714fd93b02641e2b /sys/dev/i2c/adm1031.c | |
parent | 93f226fdd7fd863d667ca20568296621176a26d3 (diff) |
reboot(9): Shutdown system by signaling init(8) from kernel where appropriate
Some ports watch temperature in MD and try to shutdown system, when overheated,
by calling directly (re)boot(9). Change this to signal init(8) from kernel,
as acpi(4) and acpitz(4) do, which has been more tested. This also helps to
clarify design that ``clean shutdown must be always started by init(8)''.
Note that SIGUSR2 causes init(8) to call reboot(2) with RB_POWERDOWN, as
acpi(4) etc. already does. It is reasonable, pointed out by kettenis@,
considering system is overheated and immediate reboot may be dangerous.
OK deraadt@ miod@
Diffstat (limited to 'sys/dev/i2c/adm1031.c')
0 files changed, 0 insertions, 0 deletions