From: Matthias Schwarzott <zzam@gentoo.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: [PATCH] get_netlink_msg: unable to receive kernel netlink
Date: Tue, 13 Mar 2007 19:29:02 +0000 [thread overview]
Message-ID: <200703132029.02487.zzam@gentoo.org> (raw)
In-Reply-To: <200701301016.50139.zzam@gentoo.org>
On Samstag, 10. März 2007, Kay Sievers wrote:
> On 3/9/07, Matthias Schwarzott <zzam@gentoo.org> 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
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
destroyed/cleaned /dev, without crashing bootup at udevd startup.
Matthias
--
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=join.php&p=sourceforge&CIDÞVDEV
_______________________________________________
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
next prev parent reply other threads:[~2007-03-13 19:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-30 9:16 [PATCH] get_netlink_msg: unable to receive kernel netlink message: Matthias Schwarzott
2007-01-31 9:24 ` [PATCH] get_netlink_msg: unable to receive kernel netlink Matthias Schwarzott
2007-03-09 14:09 ` Matthias Schwarzott
2007-03-10 21:15 ` Kay Sievers
2007-03-13 19:29 ` Matthias Schwarzott [this message]
2007-03-13 21:12 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200703132029.02487.zzam@gentoo.org \
--to=zzam@gentoo.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).