From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 24C851FC44 for ; Thu, 16 Feb 2017 16:44:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932951AbdBPQoE (ORCPT ); Thu, 16 Feb 2017 11:44:04 -0500 Received: from cloud.peff.net ([104.130.231.41]:56471 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932652AbdBPQoC (ORCPT ); Thu, 16 Feb 2017 11:44:02 -0500 Received: (qmail 5239 invoked by uid 109); 16 Feb 2017 16:44:02 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Thu, 16 Feb 2017 16:44:02 +0000 Received: (qmail 24615 invoked by uid 111); 16 Feb 2017 16:44:03 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Thu, 16 Feb 2017 11:44:03 -0500 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 16 Feb 2017 11:44:00 -0500 Date: Thu, 16 Feb 2017 11:44:00 -0500 From: Jeff King To: Andreas Schwab Cc: Junio C Hamano , =?utf-8?B?SsOhY2h5bSBCYXJ2w61uZWs=?= , git@vger.kernel.org Subject: Re: Confusing git messages when disk is full. Message-ID: <20170216164359.k2ab7laqqvusfsm2@sigill.intra.peff.net> References: <20170215213221.lnraiktneokpk3mg@sigill.intra.peff.net> <20170215215151.a5chtxyjhbe3og4p@sigill.intra.peff.net> <20170215223246.mkaz22yrovnscnne@sigill.intra.peff.net> <20170215231832.bzg3ygz4ualcvqlc@sigill.intra.peff.net> <87tw7uv439.fsf@linux-m68k.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87tw7uv439.fsf@linux-m68k.org> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu, Feb 16, 2017 at 11:10:18AM +0100, Andreas Schwab wrote: > >> int xfclose(FILE *fp) > >> { > >> return ferror(fp) | fclose(fp); > >> } > > > > Yes, that's exactly what I had in mind (might be worth calling out the > > bitwise-OR, though, just to make it clear it's not a typo). > > Since the order of evaluation is unspecified, it would be better to > force sequencing ferror before fclose. Good point. Arguably the call in tempfile.c is buggy. -Peff