-
Committer:
Scott James Remnant
-
Date:
2006-08-27 21:15:34 UTC
-
Revision ID:
scott@netsplit.com-20060827211534-845a872dda0be699
* upstart/control.c (upstart_send_msg_to, upstart_recv_msg): Deal
with halting, rebooting and powering off; or at least the appropriate
messages.
* upstart/control.h: Add control message structures for halting,
powering off and rebooting the machine.
* upstart/tests/test_control.c (test_messages): Run the tests.
* init/control.c (control_handle): Add handling for halt, power off
and reboot that issue the shutdown event and arrange for the halt,
poweroff or reboot to be issued the next time the system is idle.
* init/tests/test_control.c (test_watcher): Test the events.