Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 19 Jul 2002 15:22:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 19 Jul 2002 15:22:49 -0400 Received: from gate.in-addr.de ([212.8.193.158]:51727 "HELO mx.in-addr.de") by vger.kernel.org with SMTP id ; Fri, 19 Jul 2002 15:21:54 -0400 Date: Fri, 19 Jul 2002 21:25:24 +0200 From: Lars Marowsky-Bree To: "Patrick J. LoPresti" , Joseph Malicki Cc: linux-kernel@vger.kernel.org Subject: Re: close return value Message-ID: <20020719192524.GY12420@marowsky-bree.de> References: <200207182347.g6INlcl47289@saturn.cs.uml.edu> <015401c22f40$c4471380$da5b903f@starbak.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4i X-Ctuhulu: HASTUR Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 33 On 2002-07-19T14:48:44, "Patrick J. LoPresti" said: > Of course, checking errors in order to handle them sanely is a good > thing. Nobody is arguing that. What I am arguing is that failing to > check errors when they can "never happen" is wrong. Actually, checking for _all_ even remotely possible and checkable error conditions (if the check doesn't incur an intolerable overhead) is a very very important requirement for writing high quality code; even if it isn't "fault tolerant" (because it may not know how to recover, as with the ill-defined semantics of close() returning error), it will at least be "fail-fast"; giving an error message close to the cause and terminate in a co-ordinated manner before corrupting data. It troubles me deeply that some people hacking on the Linux kernel do not consider this a good thing. And with that, I conclude my point and step out of the discussion for good. Sincerely, Lars Marowsky-Br?e -- Immortality is an adequate definition of high availability for me. --- Gregory F. Pfister - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/