[Top][All Lists]

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

Re: setting standard fds to console in translator libs

From: Marcus Brinkmann
Subject: Re: setting standard fds to console in translator libs
Date: Fri, 24 Aug 2001 13:20:15 +0200
User-agent: Mutt/1.3.20i

On Fri, Aug 24, 2001 at 09:36:01AM +0200, Niels Möller wrote:
> To me, it seems odd to have translators fiddle with their stdio in
> that way. Why not simply let the processes send messages to their
> stderr, and redirect stderr anytime you want to? I.e.

Yeah, I guess we could (except for exec maybe).  The stroy is that we don't
do it for all system translatores right now, which means that what they have
to say to us gets lost.  The motivation of Moritz was that he debugged
pfinet, which got an assertion failure.  If pfinet had its output redirected
to the console, this would have been trivial to see.  But he could only find
out with gdb what's going on.
>   settrans -a foo /some/translator 2>/dev/console
> (I'm not sure about the passive case, you could use
>   setttrans -p foo /bin/sh '/some/translator 2>/dev/console

Yes, that works. (except for the single quote)
> Why was this feature added to libdiskfs? I agree that some consistency
> would be nice.

The root filesystem can not access /dev/console until after the bootstrap
has happened.
> I also suspect that some people would want all messages to go via
> syslog, but I don't know enough about that to say if that would be
> useful.

We discussed this earlier here on the list, it's a TODO item (syslogify
everything).  I forgot the results of the discussion, though ;)


`Rhubarb is no Egyptian god.' Debian http://www.debian.org brinkmd@debian.org
Marcus Brinkmann              GNU    http://www.gnu.org    marcus@gnu.org

reply via email to

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