From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 17E411F5AE for ; Wed, 2 Jun 2021 20:12:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229647AbhFBUNf (ORCPT ); Wed, 2 Jun 2021 16:13:35 -0400 Received: from dcvr.yhbt.net ([64.71.152.64]:57894 "EHLO dcvr.yhbt.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbhFBUNe (ORCPT ); Wed, 2 Jun 2021 16:13:34 -0400 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B84DE1F5AE; Wed, 2 Jun 2021 20:11:50 +0000 (UTC) Date: Wed, 2 Jun 2021 20:11:50 +0000 From: Eric Wong To: Jeff King Cc: Taylor Blau , "Randall S. Becker" , 'Junio C Hamano' , git@vger.kernel.org Subject: Re: [ANNOUNCE] Git v2.32.0-rc3 - t5300 Still Broken on NonStop ia64/x86 Message-ID: <20210602201150.GA29388@dcvr> References: <002701d757d8$1a8d9dc0$4fa8d940$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Jeff King wrote: > And so when he gets this error: > > fatal: fsync error on '.git/objects/pack/tmp_pack_NkPgqN': Interrupted system call > > presumably we were in fsync() when the signal arrived, and unlike most > other platforms, the call needs to be restarted manually (even though we > set up the signal with SA_RESTART). I'm not sure if this violates POSIX > or not (I couldn't find a definitive answer to the set of interruptible > functions in the standard). But either way, the workaround is probably > something like: "man 3posix fsync" says EINTR is allowed ("manpages-posix-dev" package in Debian non-free). > #ifdef FSYNC_NEEDS_RESTART The wrapper should apply to all platforms. NFS (and presumably other network FSes) can be mounted with interrupts enabled. > #undef fsync /* we'd define to git_fsync() in a header file */ > static int git_fsync(int fd) > { > int ret; > while ((ret = fsync(fd)) < 0 && errno == EINTR) > ; /* try again */ > return ret; > } Looks fine.