From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 9 09:45:57 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0636D106566B for ; Wed, 9 Jun 2010 09:45:57 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 7650F8FC18 for ; Wed, 9 Jun 2010 09:45:56 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o599k6mU079223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 9 Jun 2010 12:46:06 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o599jqXe034367; Wed, 9 Jun 2010 12:45:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o599jqbi034366; Wed, 9 Jun 2010 12:45:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 9 Jun 2010 12:45:52 +0300 From: Kostik Belousov To: perryh@pluto.rain.com Message-ID: <20100609094552.GE83316@deviant.kiev.zoral.com.ua> References: <1276001507.6691.388.camel@kurkku.sapo.corppt.com> <4c0f442f.N55MZNOTsFpdxLGx%perryh@pluto.rain.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6B9BisSCoMvigduU" Content-Disposition: inline In-Reply-To: <4c0f442f.N55MZNOTsFpdxLGx%perryh@pluto.rain.com> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_50, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-hackers@freebsd.org, tss@iki.fi Subject: Re: close() failing with ECONNRESET X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jun 2010 09:45:57 -0000 --6B9BisSCoMvigduU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 09, 2010 at 12:35:11AM -0700, perryh@pluto.rain.com wrote: > Timo Sirainen wrote: >=20 > > I see that since FreeBSD 6.3 close() can fail with: > > > > > [ECONNRESET] The underlying object was a stream socket that was > > > shut down by the peer before all pending data was > > > delivered. > > > > Could someone explain what this is useful for? Note that any return from close(2) that does not set errno to EBADF closes the supplied file descriptor. Mentioned errno value supplies caller with the information that not "all pending data was delivered". >=20 > Consistency with SIGPIPE, perhaps? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --6B9BisSCoMvigduU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkwPYtAACgkQC3+MBN1Mb4hH/gCg4ze0bLXxApA1dTt2JF1g9dT/ pxoAniY32ks/6UJpj6A4y3b789qQCIx2 =4Nz6 -----END PGP SIGNATURE----- --6B9BisSCoMvigduU--