Fix for #1003

Erik Andersen andersen at lineo.com
Fri Jul 7 20:34:45 UTC 2000


On Fri Jul 07, 2000 at 08:33:31AM -0700, Matt Kraai wrote:
> Howdy,
> 
> The function halt_signal in busybox/init.c is supposed to handle both
> poweroff and halt.  It does this by determining whether it was notified
> by SIGUSR1 (for halt) or SIGUSR2 (for poweroff).  However, when setting
> up the signal handlers, it appears that SIGUSR2 is bound to
> reboot_signal, so that the code to handle poweroff is never reached.
> The attached patch changes it to use the correct signal handler.
> 
> Matt

Ahh.  Thanks!  It seems that the probability of spotting a bug
is inversely proportional to the number of time you look at it.
I had looked over and over that code...

Very cool.  Applied.

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://codepoet.org/lists/busybox/attachments/20000707/c1f708ca/attachment.bin


More information about the busybox mailing list