From owner-freebsd-stable@FreeBSD.ORG Sat Oct 17 17:58:59 2009 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C654106566B for ; Sat, 17 Oct 2009 17:58:59 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id DDD258FC0A for ; Sat, 17 Oct 2009 17:58:58 +0000 (UTC) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.3/8.14.3) with ESMTP id n9HHwrhC092819; Sat, 17 Oct 2009 13:58:55 -0400 (EDT) (envelope-from mi+thun@aldan.algebra.com) Message-ID: <4ADA05DD.2080207@aldan.algebra.com> Date: Sat, 17 Oct 2009 13:58:53 -0400 From: "Mikhail T." User-Agent: Thunderbird 2.0.0.22 (X11/20090711) MIME-Version: 1.0 To: Jilles Tjoelker References: <4AD9F4ED.2050002@aldan.algebra.com> <20091017172718.GJ2160@deviant.kiev.zoral.com.ua> <4ADA01C2.3000303@aldan.algebra.com> <20091017175555.GA76378@stack.nl> In-Reply-To: <20091017175555.GA76378@stack.nl> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: Kostik Belousov , stable@freebsd.org Subject: Re: Can close-ing a pipe trigger a SIGPIPE? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2009 17:58:59 -0000 Jilles Tjoelker ΞΑΠΙΣΑΧ(ΜΑ): > It seems unwise to assume that a write(2) of 0 bytes is a noop. > Even if it is, doing it is a waste of a system call. This is not my code -- it is part of the implementation of Tcl's "close" command. I'm trying to unravel, where this write coming from, but, meanwhile, it would be useful to find out, if FreeBSD's handling of such writes changed recently, wouldn't it? Because this self-test used to pass cleanly before, so either FreeBSD changed, or the Tcl did (not the TclX extension, which did not change in years). Thanks for your help... -mi