linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] /usr/sbin/udev support
@ 2004-03-23 19:26 Marco d'Itri
  0 siblings, 0 replies; only message in thread
From: Marco d'Itri @ 2004-03-23 19:26 UTC (permalink / raw)
  To: linux-hotplug

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

Even if this is probably not appropriate for the upstream package I'm
posting it to show how easy it was to support two different daemons.
So far no debian user has complained.

-- 
ciao, |
Marco | [5278 abcb4SD7HHbzI]

[-- Attachment #2: run_usr_sbin_udev --]
[-- Type: text/plain, Size: 530 bytes --]

diff -ruNp udev-022.orig/udevd.c udev-022/udevd.c
--- udev-022.orig/udevd.c	2004-03-13 00:53:56.000000000 +0100
+++ udev-022/udevd.c	2004-03-20 18:10:55.000000000 +0100
@@ -130,6 +130,11 @@ static void udev_run(struct hotplug_msg 
 	switch (pid) {
 	case 0:
 		/* child */
+		if (execle("/usr" UDEV_BIN, "udev", msg->subsystem, NULL,
+			    env) < 0 && errno != ENOENT) {
+		    dbg("exec of child failed");
+		    exit(1);
+		}
 		execle(UDEV_BIN, "udev", msg->subsystem, NULL, env);
 		dbg("exec of child failed");
 		exit(1);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-23 19:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-23 19:26 [PATCH] /usr/sbin/udev support Marco d'Itri

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