[BusyBox] bug#1178: busybox init halt/reboot bug report & fix
Matt Kraai
kraai at alumni.carnegiemellon.edu
Sun Jun 3 05:54:05 UTC 2001
On Sat, Jun 02, 2001 at 11:24:20PM -0400, Adam Slattery wrote:
> If you've ever noticed, the kernel panics when you halt the system and
> complains about "attempted to kill init" because init exited. This isn't a
> big deal, but it's "ugly" and "incorrect behavior" and the fix is
> extremely simple.
>
> I coded my own shell for an embedded firewall (busybox was too bloated for
> it :) and had the same issue. The workaround is simply to put init into an
> endless loop right after the call to reboot instead of calling exit().
OK, I converted the two functions you mentioned to use
loop_forever(), as well as some other infinite loops (for a
savings of 32 bytes). Thanks.
Matt
More information about the busybox
mailing list