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: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 8FFEA1F463 for ; Mon, 25 Nov 2019 13:30:52 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=nXuZde52KnGemtXqhZCLz5I7DNhwbmt1kkTAFTbl8Wk AWkoJgmSTb/VXjEQbSk4k6jp3naAn4b2KGMJVKCfxOb0uaQ0EQYz3BRdpdPcSww7 NhHjsSKlBe5rhZgQQRjrxAKvD9MP5zGMYHCYw0e6ZAQ1Uw+wW/uPLYa+u/SrCDcQ = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=EdxDM9oINCmwrQNH2SL70EoGSb4=; b=K48eVhyBJAAGHz6XD R9Q5O3Cw5jGGDtmw43RWysbYt5prg66ksIMLaH8Bxp7uaHtnfw1PFVsgZ12PPJRD 5VH++jk9Ot6yBl0P8Ktwl1WOTueDPe1vYnbUDEfsqM0Dkq52kcsGo5VPLo08oata lbSNdaVV/ENWnOMD/frMFDY2NU= Received: (qmail 26658 invoked by alias); 25 Nov 2019 13:30:50 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 26647 invoked by uid 89); 25 Nov 2019 13:30:49 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574688647; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nmZ6yky/e0vmninZQ7hgKPblZGxt6hZazOV/jVbMmQY=; b=NBVQNdMWnEVmmchSwqrDnnYs1ffeBsthp69GDV67g/0ZSlIEpe1KHjQIRU8zHzMjSvHMqf BLjAWmGObh61MILtQTZr21GaSGy/fb9WBWBiLc3M8Kkv0dwD9o5xSMwT38ftMYdLcsBAAN FX+EYoPZ9/ESss8eBi/tU5lA/lUqiKg= From: Florian Weimer To: Andreas Schwab Cc: libc-alpha@sourceware.org Subject: Re: [PATCH] Always do locking when accessing streams (bug 15142) References: <87lfs9o1q7.fsf@oldenburg2.str.redhat.com> <87wobtmklz.fsf@oldenburg2.str.redhat.com> Date: Mon, 25 Nov 2019 14:30:38 +0100 In-Reply-To: (Andreas Schwab's message of "Thu, 21 Nov 2019 14:27:59 +0100") Message-ID: <87eexwgk1t.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * Andreas Schwab: > On Nov 21 2019, Florian Weimer wrote: > >>>> Does this fix or re-open bug 15142? >>> >>> Why re-open? >> >> Lack of flushing of streams on process exit. > > I don't understand what you are trying to tell me. Hmm. Bug 15142 is not the bug, but don't we have a bug somewhere about not flushing streams on exit (as opposed to abort)? >> I think the last time we discussed this, > > Do you have a pointer? I can't find the discussion. But I think we discussed it somewhere. The main question is whether it is acceptable for programs to hang indefinitely if a flushable stream is locked for some reason. POSIX actually seems to require that behavior, but I'm not sure how backwards-compatible it is. There are probably quite a few libraries which store a FILE * internally, use flockfile to get performance, and synchronize access to the file by other means. Thanks, Florian