bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setting standard fds to console in translator libs


From: Niels Möller
Subject: Re: setting standard fds to console in translator libs
Date: 24 Aug 2001 15:31:08 +0200

Marcus Brinkmann <Marcus.Brinkmann@ruhr-uni-bochum.de> writes:

> Hackery hack.  serverboot writes directly to the Mach console.

...

> Should the bootstrap filesystem put the Mach device in its dport?
> Or is this too hackish, and it should close the mach device and open
> /dev/console properly when it cans, and put this in the dtable slot for
> stderr?  When is it safe for ext2fs to open /dev/console?
> Maybe in libdiskfs/boot-start.c (diskfs_S_fsys_init) [which is called by
> init when proc and auth are up and running)?

What about this: Before the root filesystem is running (what starts
before the root filesystem? init? Or only the kernel?), create a port
that looks like an ordinary i/o port, but which sends all messages to
the mach console. This thing might be the mach console itself, or some
thread in the kernel or init. Make sure the root filesystem uses this
port for it's stderr.

Later, when /dev/console is started (if not earlier, this should
happen as soon as some init script sends data to the console), the
console tells init about that, and gets init to either give away the
root filesystems stderr port to the console, or if that's too hard,
start forwarding messages to the console.

/Niels



reply via email to

[Prev in Thread] Current Thread [Next in Thread]