From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 30 Apr 2006 00:14:39 +0000 Subject: Re: [PATCH] Give a hint when 'udevd' is ready to operate Message-Id: <20060430001439.GD25014@vrfy.org> List-Id: References: <877j587nq1.fsf@kosh.bigo.ensc.de> In-Reply-To: <877j587nq1.fsf@kosh.bigo.ensc.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Apr 29, 2006 at 04:11:34PM +0200, Enrico Scholz wrote: > Kay Sievers writes: > > >> udevd --daemon > >> udevtrigger > > > > Yeah, that is the usual way and udevd makes sure not to return before > > it's fully initialized. Waiting for a file from a daemon, just because > > the minit-like stuff tries to be smart (daemons don't detach) sounds > > weird. Anyway, the current udevd exports the seqnum of the kernel, so > > one can wait for that, > > Does not work; the first call to export_initial_seqnum() (before fork()) > is a noop because > > | strlcpy(filename, udev_root, sizeof(filename)); > | strlcat(filename, "/" EVENT_SEQNUM, sizeof(filename)); > | fd = open(filename, O_WRONLY|O_TRUNC|O_CREAT, 0644); > > fails due to the non-existing '/dev/.udev' path. So, my patch should be > applied earlier Just create that directory yourself and wait for the seqnum file to appear. In the devel tree it's already changed 3 days ago, but not in a released version. Kay ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel