Reboot implemention
Michael Conrad
mconrad at intellitree.com
Wed Nov 15 15:08:40 UTC 2017
On 11/13/2017 8:19 PM, Cathey, Jim wrote:
>
> >Is there a reason why BusyBox's [reboot] implementation is different,
> or is it a bug?
>
> The final fs cleanup, and the only one that really counts, is what the
> kernel does after init(8) exits.
>
Pretty sure if init exits it is an immediate PANIC, which is not how
most systems reboot. I think it all ends with the reboot syscall. I'm
not sure what the semantics are for that syscall, but it would seem that
sync() would be wise to execute first. Unless it's implied by reboot().
-Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171115/7c125b8f/attachment.html>
More information about the busybox
mailing list