[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: umount -a segfaults; reboot system



On Mon Nov 22, 1999 at 02:53:25PM -0500, Adam Di Carlo wrote:
> 
> umount -a is segfaulting on i386 anyhow.
> 
> In utilities/dbootstrap/reboot_system.c, we read:
> 
>   kill(1, SIGUSR2);
> 
> This seems to somewhat work... but is it the right thing to do?
> Shouldn't we just run 'reboot'?

system ( "reboot") would be cleaner for when busybox changes.

For now, busybox has 

    extern int
    reboot_main(int argc, char ** argv)
    {
	exit( kill(1, SIGUSR2));
    }

but that _will_ change some time. The current approach fails 
when using an initrd, since then init will run as pid 6 or so.

 -Erik

--
Erik B. Andersen   Web:    http://www.xmission.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--


Reply to: