WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] /sbin/hotplug exec'd lots of times during boot

To: Jacob Gorm Hansen <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] /sbin/hotplug exec'd lots of times during boot
From: Chris Wright <chrisw@xxxxxxxx>
Date: Thu, 7 Apr 2005 10:19:18 -0700
Cc: Chris Wright <chrisw@xxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 07 Apr 2005 17:19:16 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <42555FEF.5050305@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <42549E59.6020108@xxxxxxx> <20050407082005.GJ11199@xxxxxxxxxxxxxxxxxxx> <42555FEF.5050305@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
* 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

<Prev in Thread] Current Thread [Next in Thread>