Subject: Re: malloc writing to fd 2
To: David Laight <>
From: Charles Blundell <>
List: tech-userlevel
Date: 07/18/2003 09:53:04
on Fri, Jul 18, 2003 at 08:59:36AM +0100, David Laight wrote:
> On Fri, Jul 18, 2003 at 12:44:59AM +0100, Charles Blundell wrote:
> > 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.

Ew. Not more hidden-in-libc opens.
Besides, it is not always the right place for it to go. e.g.
daemons, or something in chroot or when errors are explicitly
not wanted on screen..

> Just keeping quiet?

These warnings can be quiet useful, I think, during development.