linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Give a hint when 'udevd' is ready to operate
@ 2006-04-29  9:08 Enrico Scholz
  2006-04-29 12:46 ` Scott James Remnant
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Enrico Scholz @ 2006-04-29  9:08 UTC (permalink / raw)
  To: linux-hotplug

[-- Attachment #1: Type: text/plain, Size: 544 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: creates /dev/.udev upon startup --]
[-- Type: text/x-patch, Size: 283 bytes --]

--- 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);

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-04-30  0:14 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29  9:08 [PATCH] Give a hint when 'udevd' is ready to operate Enrico Scholz
2006-04-29 12:46 ` Scott James Remnant
2006-04-29 12:58 ` Kay Sievers
2006-04-29 13:12 ` Enrico Scholz
2006-04-29 14:11 ` Enrico Scholz
2006-04-29 14:44 ` David Gómez
2006-04-30  0:14 ` Kay Sievers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).