Reboot implemention

Venkat kuruturi.venkat at gmail.com
Tue Nov 14 01:00:15 UTC 2017


Hi,

I was looking at the implementation of busybox's reboot while trying to
trace a bug that causes my system to hang when rebooting.  I noticed that
the reboot command performs a sync(), then kills processes and reboots,
which could potentially cause a bug where processes write to the filesystem
after the sync before they are killed.  On the other hand, in util-linux's
implementation of reboot, the processes are killed first, then a sync() and
reboot are done.  Is there a reason why BusyBox's implementation is
different, or is it a bug?

Thanks,
Venkat Kuruturi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171113/c7db6255/attachment.html>


More information about the busybox mailing list