From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Schwarzott Date: Tue, 13 Mar 2007 19:29:02 +0000 Subject: Re: [PATCH] get_netlink_msg: unable to receive kernel netlink Message-Id: <200703132029.02487.zzam@gentoo.org> List-Id: References: <200701301016.50139.zzam@gentoo.org> In-Reply-To: <200701301016.50139.zzam@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Samstag, 10. M=C3=A4rz 2007, Kay Sievers wrote: > On 3/9/07, Matthias Schwarzott wrote: > > > > Does nobody cosider this bug worth fixing it, as I consider it ugly to > > have to explicitly redirect stdin, stdout and stderr just for executing= a > > daemon that already has the goal to close these fds. > > Aren't you expected to connect the init script to the (dead) console > anyway? exec 0<> $CONSOLE 1>&0 2>&0 Normally the kernel connects /dev/console and the init-process. But only if /dev/console (or $CONSOLE) exists on the root-partition. If it does not fds 0, 1 and 2 are closed. In that case I have to add # exec 0<> $CONSOLE 1>&0 2>& to every init-script? And for that even create $CONSOLE before executing udev, as that does not=20 exist in empty tmpfs. For all other init-scripts/daemons it works without, but not for udev. If this bug is solved we still can boot from a partition with completely=20 destroyed/cleaned /dev, without crashing bootup at udevd startup. Matthias --=20 Matthias Schwarzott (zzam) ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ 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