From: Enrico Scholz Date: Sat, 29 Apr 2006 09:08:54 +0000 Subject: [PATCH] Give a hint when 'udevd' is ready to operate Message-Id: <877j587nq1.fsf@kosh.bigo.ensc.de> MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-=-=" List-Id: To: linux-hotplug@vger.kernel.org --=-=-= Hello, please apply the attached patch. It creates the '/dev/.udev' directory when 'udevd' is ready to operate. This helps init methods like 'initng' or 'minit' to stop future processing (e.g. invoking 'udevtrigger') until 'udevd' is fully initialized. Currently, there does not seem to exist a way to wait for 'udevd' (resp. to check whether it is ready) and issued uevent's may disappear silently. With this patch, the init methods can test for /dev/.udev (e.g. waiting actively or using inotify) after 'udevd' has been started. Enrico --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=udev-091-startup.patch Content-Description: creates /dev/.udev upon startup --- udev-091/udevd.c.startup 2006-04-25 22:39:59.000000000 +0200 +++ udev-091/udevd.c 2006-04-28 10:00:48.000000000 +0200 @@ -946,6 +946,8 @@ chdir("/"); umask(022); + create_path(UDEV_ROOT); + /* become session leader */ sid = setsid(); dbg("our session is %d", sid); --=-=-=-- ------------------------------------------------------- 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&kid=120709&bid=263057&dat=121642 _______________________________________________ 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