Subject: Re: malloc writing to fd 2
To: <>
From: David Laight <>
List: tech-userlevel
Date: 07/18/2003 08:59:36
On Fri, Jul 18, 2003 at 12:44:59AM +0100, Charles Blundell wrote:
> on Thu, Jul 17, 2003 at 10:44:58PM +0100, David Laight wrote:
> > 1) I don't think that malloc() (or any other part of libc for that matter)
> >    should be writing out error messages to fd 2.
> >    There is no requirement for that to be a log file of any description,
> >    (although it is useful to make it one).
> I have a patch for this.. it adds two more malloc options 'w' and 'W'
> to turn on and off (respectively) malloc warnings, defaulting
> to off. The other way might be to check that STDIN_FILENO is a tty.
> I seem to recall, though, that last time this came up there was
> something else being considered...

Opening /dev/tty? writing to that is probably safe.
Just keeping quiet?


David Laight: