[Toybox] reboot: signal init, add -f to bypass
Isaac Dunham
ibid.ag at gmail.com
Wed Aug 5 21:47:41 PDT 2015
On Wed, Aug 05, 2015 at 11:25:45PM -0500, Rob Landley wrote:
> On 08/05/2015 10:16 PM, Isaac Dunham wrote:
> > On Fri, Jul 31, 2015 at 01:14:55PM -0700, Isaac Dunham wrote:
> >> On Sat, Mar 28, 2015 at 08:02:04PM +0000, Isaac Dunham wrote:
> >>> reboot: signal init, add -f option to call reboot();
> >>> init: use SIGINT, use xsignal()
> >>>
> >>> Now that oneit supports the same signals as our "sysv"-init for shutdown,
> >>> make reboot et al. signal pid 1 with the appropriate signal.
> >>> Of these signals, only SIGINT works with sysvinit 2.88, causing a reboot.
> >>> The others are only supported in Busybox init.
> >>>
> >>> Also, make init accept SIGINT and use xsignal().
> >>
> >> Ping.
> >
> > Ignore this version; I didn't remove a default signal handler for SIGINT.
> > The fixed version is in my pull request.
>
> Timing.
Ha.
The only difference in that version is one deletion:
- sigaction(SIGINT, &sig_act, NULL);
near line 473.
That's the tip of the pull request; I can change it easily enough.
But I forgot to mention that the pull request is not in branch "master"
but branch "up"...
Thanks,
Isaac
1438836461.0
More information about the Toybox
mailing list