[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 09:36:01 +0200 |
Moritz Schulte <moritz@chaosdorf.de> writes:
> i thought about adding a function similar to
> libdiskfs/console.c::diskfs_console_stdio() to libnetfs and
> libtrivfs. Then, these libs would be a bit more consistent: messages
> (and e.g. assertion failures) from the translators would go directly
> to the console and wouldn't be lost.
...
> Any ideas/suggestions?
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.
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
but it seems more straight forward to set the parent file system's
stderr to where you want it, and let child translators just inherit
it).
Why was this feature added to libdiskfs? I agree that some consistency
would be nice.
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.
/Niels
- setting standard fds to console in translator libs, Moritz Schulte, 2001/08/23
- Re: setting standard fds to console in translator libs,
Niels Möller <=
- Re: setting standard fds to console in translator libs, Marcus Brinkmann, 2001/08/24
- Re: setting standard fds to console in translator libs, Niels Möller, 2001/08/24
- Re: setting standard fds to console in translator libs, Marcus Brinkmann, 2001/08/24
- Re: setting standard fds to console in translator libs, Niels Möller, 2001/08/24
- Re: setting standard fds to console in translator libs, Marcus Brinkmann, 2001/08/24
- Re: setting standard fds to console in translator libs, Niels Möller, 2001/08/24
- Re: setting standard fds to console in translator libs, Thomas Bushnell, BSG, 2001/08/24
- Re: setting standard fds to console in translator libs, Niels Möller, 2001/08/24
- Re: setting standard fds to console in translator libs, Neal H Walfield, 2001/08/24
- Re: setting standard fds to console in translator libs, Thomas Bushnell, BSG, 2001/08/24