Pending patches

Denys Vlasenko vda.linux at googlemail.com
Wed Oct 29 03:29:41 UTC 2008


On Wednesday 29 October 2008 03:48, Denys Vlasenko wrote:
> +                       // kill survived services
> +                       killall(SIGKILL);
> +                       sync(); sleep(1);
> +                       // umount -a
> +                       // ???
> +                       // reboot
> +                       reboot(
> +                               (SIGUSR1 == bb_got_signal) ? RB_HALT_SYSTEM :
> +                               (SIGUSR2 == bb_got_signal) ? RB_POWER_OFF :
> +                               RB_AUTOBOOT
> +                       );
> 
> Do we really want to hard-reboot without remounting RO
> or unmounting filesystems?
> 
> What if user disagrees with our reboot sequence (needs bigger delays,
> wants to free lop devices, etc?). Yes, he can code up "different reboot"
> himself, as a shell script. But this exact *our* sequence can be set up
> exactly the same way as a shell script, no need to patch runsvdir! Right?

In order to facilitatte this, we just need to make sure
we do not crash kernel by exiting. kernel doesn't like
init exiting. How about attached patch?
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 6prime.patch
Type: text/x-diff
Size: 2779 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081029/a9b81d0b/attachment.bin 


More information about the busybox mailing list