From owner-freebsd-hackers Wed Feb 26 00:16:36 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id AAA25033 for hackers-outgoing; Wed, 26 Feb 1997 00:16:36 -0800 (PST) Received: from bofh.cybercity.dk (bofh.cybercity.dk [195.8.128.254]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA25028 for ; Wed, 26 Feb 1997 00:16:33 -0800 (PST) Received: from critter.dk.tfs.com ([140.145.230.252]) by bofh.cybercity.dk (8.8.3/8.7.3) with ESMTP id JAA16490; Wed, 26 Feb 1997 09:18:29 +0100 (MET) Received: from critter.dk.tfs.com (localhost [127.0.0.1]) by critter.dk.tfs.com (8.8.2/8.8.2) with ESMTP id JAA07997; Wed, 26 Feb 1997 09:19:33 +0100 (MET) To: Naoki Hamada cc: syssgm@devetir.qld.gov.au, j@uriah.heep.sax.de, freebsd-hackers@FreeBSD.ORG Subject: Re: MALLOC(3) writes to stderr... In-reply-to: Your message of "Wed, 26 Feb 1997 12:49:40 +0900." <199702260349.MAA00204@sirius.sbl.cl.nec.co.jp> Date: Wed, 26 Feb 1997 09:19:33 +0100 Message-ID: <7995.856945173@critter.dk.tfs.com> From: Poul-Henning Kamp Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199702260349.MAA00204@sirius.sbl.cl.nec.co.jp>, Naoki Hamada writes : >Stephen wrote: >>Although not enforced by the kernel, file descriptors 0, 1 and 2 have a >>conventional use that should always be respected. If you don't want to >>see stderr output, open /dev/null as descriptor 2. > >Thanks. I'm going to fix the daemon in this way. > >Also MALLOC(3) should be changed to keep silent unless explicitly >indicated, souldn't it? Malloc(3) would be in it's good right to simply coredump your process in any case where it will write to fd#2. It only does this after detected interface violations. I have considered adding a callback for reporting these kind of violations so that programs could register other handlers for it. -- Poul-Henning Kamp | phk@FreeBSD.ORG FreeBSD Core-team. http://www.freebsd.org/~phk | phk@login.dknet.dk Private mailbox. whois: [PHK] | phk@tfs.com TRW Financial Systems, Inc. Power and ignorance is a disgusting cocktail.