|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] /sbin/hotplug exec'd lots of times during boot
* Jacob Gorm Hansen (jacobg@xxxxxxx) wrote:
> Chris Wright wrote:
> >* Jacob Gorm Hansen (jacobg@xxxxxxx) wrote:
> >
> >>I just added a printk to do_execve() in xenolinux0, and noticed that
> >>/sbin/hotplug is being exec'ed more than a hundred times during boot,
> >>and that this happens before /sbin/init is exec'ed.
> >
> >
> >This sounds pretty normal for Linux. Each kobject_add can generate a
> >hotplug event, and execve("/sbin/init") happens quite late during bootup.
>
> No wonder it is slow to boot then ;-) ... How can one be sure that the
> /sbin/hotplugs are no longer running when /sbin/init runs, i.e. that
> init has pid==1? Are there no forks allowed in /sbin/hotplug?
pid == 1 starts long before is execs itself into /sbin/init.
thanks,
-chris
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|