[PATCH] init.c, halt command not working

Denys Vlasenko vda.linux at googlemail.com
Tue Apr 1 21:51:58 UTC 2008


On Tuesday 01 April 2008 23:41, Harald Kuethe wrote:
> > ----- Original Message ----- 
> > From: "Denys Vlasenko" <vda.linux at googlemail.com>
> > To: <busybox at busybox.net>
> > Cc: "Harald Küthe" <harald-tuxbox at arcor.de>
> > Sent: Monday, March 31, 2008 9:52 PM
> > Subject: Re: [PATCH] init.c, halt command not working
> 
> 
> > On Monday 31 March 2008 21:59, Harald Küthe wrote:
> > > > The sequence of events is:
> > > > SIGUSR1 is received
> > > > halt_reboot_pwoff(SIGUSR1) calls
> > > >  kill_all_processes() calls
> > > >   run_actions(SHUTDOWN):
> > > >                         if (a->action_type & (SYSINIT | WAIT | 
> > > CTRLALTDEL | SHUTDOWN | RESTART)) {
> > > >                                 waitfor(run(a));
> > > >                                 delete_init_action(a);
> > > > run(a) vforks... and this is somehow doesn't work very well
> > > 
> > > It looks as if SIGUSR1 is !!not!! received because halt_reboot_pwoff()
> > > is not processed.
> 
> > Please confirm that you added a debug printout to
> > halt_reboot_pwoff and it is not triggering when halt
> > sends SIGUSR1 to init.
> 
> Yes, confirmed!

And also it doesn't trigger when you send signal by hand -
"kill -USR1 1" ?
--
vda



More information about the busybox mailing list