From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gorm Hansen Subject: Re: /sbin/hotplug exec'd lots of times during boot Date: Thu, 07 Apr 2005 09:29:35 -0700 Message-ID: <42555FEF.5050305@diku.dk> References: <42549E59.6020108@diku.dk> <20050407082005.GJ11199@shell0.pdx.osdl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050407082005.GJ11199@shell0.pdx.osdl.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Chris Wright Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Chris Wright wrote: > * Jacob Gorm Hansen (jacobg@diku.dk) 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