From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Marco d'Itri" Date: Tue, 23 Mar 2004 19:26:53 +0000 Subject: [PATCH] /usr/sbin/udev support Message-Id: <20040323192653.GB9370@wonderland.linux.it> MIME-Version: 1 Content-Type: multipart/mixed; boundary="f2QGlHpHGjS2mn6Y" List-Id: To: linux-hotplug@vger.kernel.org --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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] --f2QGlHpHGjS2mn6Y Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=run_usr_sbin_udev 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); --f2QGlHpHGjS2mn6Y-- ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ 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