From: Chris Wright Subject: Re: /sbin/hotplug exec'd lots of times during boot Date: Thu, 7 Apr 2005 10:19:18 -0700 Message-ID: <20050407171917.GO11199@shell0.pdx.osdl.net> References: <42549E59.6020108@diku.dk> <20050407082005.GJ11199@shell0.pdx.osdl.net> <42555FEF.5050305@diku.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <42555FEF.5050305@diku.dk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: Chris Wright , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org * Jacob Gorm Hansen (jacobg@diku.dk) wrote: > 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? pid == 1 starts long before is execs itself into /sbin/init. thanks, -chris