From owner-freebsd-hackers Tue Feb 25 19:50:42 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id TAA11582 for hackers-outgoing; Tue, 25 Feb 1997 19:50:42 -0800 (PST) Received: from research.gate.nec.co.jp (research.gate.nec.co.jp [202.32.8.49]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA11560; Tue, 25 Feb 1997 19:50:37 -0800 (PST) Received: from sbl-gw.sbl.cl.nec.co.jp by research.gate.nec.co.jp (8.8.5+2.7Wbeta5/950912) with ESMTP id MAA27384; Wed, 26 Feb 1997 12:49:42 +0900 (JST) Received: from sirius.sbl.cl.nec.co.jp by sbl-gw.sbl.cl.nec.co.jp (8.8.5+2.7Wbeta5/3.3W6) with ESMTP id MAA08367; Wed, 26 Feb 1997 12:49:40 +0900 (JST) Received: by sirius.sbl.cl.nec.co.jp (8.7.5+2.6Wbeta6/3.3W6) with UUCP id MAA00204; Wed, 26 Feb 1997 12:49:40 +0900 (JST) Date: Wed, 26 Feb 1997 12:49:40 +0900 (JST) From: Naoki Hamada Message-Id: <199702260349.MAA00204@sirius.sbl.cl.nec.co.jp> References: <199702260311.NAA24882@ogre.devetir.qld.gov.au> To: syssgm@devetir.qld.gov.au CC: j@uriah.heep.sax.de, freebsd-hackers@FreeBSD.ORG, phk@FreeBSD.ORG In-reply-to: Stephen McKay's message of "Wed, 26 Feb 1997 13:11:14 +1000 (EST)" <199702260311.NAA24882@ogre.devetir.qld.gov.au> Subject: Re: MALLOC(3) writes to stderr... Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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? >Some others responded that stderr and descriptor 2 are logically different >and recommend using fileno(stderr) instead of 2. We of the old school all >know that stdio is an upstart young library, and will never be allowed to >use anything but descriptor 2 on Unix. :-) Absolutely. - nao