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: Chris Wright <chrisw@xxxxxxxx>
Subject: Re: [Xen-devel] /sbin/hotplug exec'd lots of times during boot
From: Jacob Gorm Hansen <jacobg@xxxxxxx>
Date: Thu, 07 Apr 2005 09:29:35 -0700
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 07 Apr 2005 16:29:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050407082005.GJ11199@xxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla Thunderbird 1.0 (X11/20050302)
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?

thanks,
Jacob

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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