Subject: Re: malloc writing to fd 2
To: David Laight <firstname.lastname@example.org>
From: Charles Blundell <email@example.com>
Date: 07/18/2003 00:44:59
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...