From owner-freebsd-current Wed Sep 9 15:48:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA03287 for freebsd-current-outgoing; Wed, 9 Sep 1998 15:48:50 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp01.primenet.com (smtp01.primenet.com [206.165.6.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA03261 for ; Wed, 9 Sep 1998 15:48:45 -0700 (PDT) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp01.primenet.com (8.8.8/8.8.8) id PAA19108; Wed, 9 Sep 1998 15:48:37 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp01.primenet.com, id smtpd019069; Wed Sep 9 15:48:30 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id PAA05352; Wed, 9 Sep 1998 15:48:27 -0700 (MST) From: Terry Lambert Message-Id: <199809092248.PAA05352@usr02.primenet.com> Subject: Re: Regarding fclose(NULL) To: cracauer@cons.org (Martin Cracauer) Date: Wed, 9 Sep 1998 22:48:27 +0000 (GMT) Cc: current@FreeBSD.ORG In-Reply-To: <19980909124126.A19691@cons.org> from "Martin Cracauer" at Sep 9, 98 12:41:26 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I plan to change fclose so that it doesn't dump core on fclose(NULL). > > For reasoning and actual patch see PR bin/7742. Don't do this. The core dump is to provide you with sufficient debug information to allow you to fix your broken program. And it *is* your program which is broken, not fclose(). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message