From within a virtual kernel, make /sbin/shutdown and /sbin/halt actually
commitcd22a250bc90486766b7266a41fb88c3bd997258
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 27 May 2007 23:28:30 +0000 (27 23:28 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 27 May 2007 23:28:30 +0000 (27 23:28 +0000)
tree8ef79c52c2d94fb07a2d9ca6c6fa77d8aa90f294
parentbe1832271d00c11d3e708de0ce929b765bdc8002
From within a virtual kernel, make /sbin/shutdown and /sbin/halt actually
halt and exit the vkernel, and make /sbin/reboot automatically re-exec
a fresh vkernel.

Talk about creating a clean slate!  Having reboot re-exec the vkernel
is really nice.  The kernel development cycle time is now down to around
18 seconds, reboot -n -q to root login prompt, and 28 seconds for a normal
reboot.  That's running a vkernel with a normal RC startup and as a
bridged DHCP client.
sys/kern/kern_shutdown.c
sys/platform/vkernel/platform/init.c