From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C961130214D for ; Mon, 26 Jan 2026 08:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769417532; cv=none; b=YOEo/e5xO9+AuqDyX/zWpeG9SeKXzD7KhSFyxRgF1OR+lTWbXp0Bp1ebTIXFxk8DevmoCAj0KdSdVz6EabBoSMLr9ETeivNXgiPcU56Ik2rPoLkSjx1+hFXyRSDeaX11Sspg4TqtHo0XIasI5UwicqJixlQjQCeXpQxEdFIZNYc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769417532; c=relaxed/simple; bh=VuF13fDDkjsDdQB0FK1glz3rdsLnhvFj2Qao2aEyreo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=jcI0pr+8x7cuuHzYBM68Km/VsvWAcs5Dhvz/QwZnpzjU6jRtWdZt8MjkdHFulLlUMdZJkUI8Ofn+4tngmA/FWbBxhPtEU1zTqUYoahmAJY6pBHAqw+D2KMCkzAV1mGkca4jPXobp7DWSCvf6iZbxgfFhgaWChpiJnFyyJ8GfZcg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=XZrntRLA; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="XZrntRLA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1769417529; 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=YzWG8mhXvLiSMnrLWOTgHghebUSlEnmkpDMK2MCkjTI=; b=XZrntRLAD3xf+RkRu6BjBOjAUTXdsfxrbTkXS6TXvqcU13RjHUd6BEVVv8yKoyjTTV849/ A74STSgPqpznc5Facs5XYzo6fwODwIjV7VkKa10KLbn5GBJG/C0ojvSazuy2wtZXEPQy3v k4zt7ORHDp7fGtV+S8JYQ1dFQuPBYwo= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-45-7XI-tJViPxmtoAD9SgSCrw-1; Mon, 26 Jan 2026 03:52:04 -0500 X-MC-Unique: 7XI-tJViPxmtoAD9SgSCrw-1 X-Mimecast-MFC-AGG-ID: 7XI-tJViPxmtoAD9SgSCrw_1769417523 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 143001944A84; Mon, 26 Jan 2026 08:52:02 +0000 (UTC) Received: from fweimer-oldenburg.csb.redhat.com (unknown [10.45.225.129]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 431D519560B4; Mon, 26 Jan 2026 08:51:57 +0000 (UTC) From: Florian Weimer To: "Zack Weinberg" Cc: "The 8472" , "Rich Felker" , "Alejandro Colomar" , "Vincent Lefevre" , "Jan Kara" , "Alexander Viro" , "Christian Brauner" , linux-fsdevel@vger.kernel.org, linux-api@vger.kernel.org, "GNU libc development" Subject: Re: [RFC v1] man/man2/close.2: CAVEATS: Document divergence from POSIX.1-2024 In-Reply-To: (Zack Weinberg's message of "Sun, 25 Jan 2026 10:37:01 -0500") References: <20250517133251.GY1509@brightrain.aerifal.cx> <5jm7pblkwkhh4frqjptrw4ll4nwncn22ep2v7sli6kz5wxg5ik@pbnj6wfv66af> <8c47e10a-be82-4d5b-a45e-2526f6e95123@app.fastmail.com> <20250524022416.GB6263@brightrain.aerifal.cx> <1571b14d-1077-4e81-ab97-36e39099761e@app.fastmail.com> <20260120174659.GE6263@brightrain.aerifal.cx> <1ec25e49-841e-4b04-911d-66e3b9ff4471@app.fastmail.com> <0f60995f-370f-4c2d-aaa6-731716657f9d@infinite-source.de> <20260124213934.GI6263@brightrain.aerifal.cx> <7654b75b-6697-4aad-93fc-29fa9b734bdb@infinite-source.de> Date: Mon, 26 Jan 2026 09:51:55 +0100 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk X-Mailing-List: linux-api@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 * Zack Weinberg: > In particular, I really hope delayed errors *aren=E2=80=99t* ever reported > when you close a file descriptor that *isn=E2=80=99t* the last reference > to its open file description, because the thread-safe way to close > stdout without losing write errors[2] depends on that not happening. > [2] https://stackoverflow.com/a/50865617 (third code block) Are you sure about that? It means that errors are never reported if a shell script redirects standard output over multiple commands. Thanks, Florian