From owner-svn-src-head@FreeBSD.ORG Sat Mar 17 23:38:52 2012 Return-Path: Delivered-To: svn-src-head@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7317C1065670; Sat, 17 Mar 2012 23:38:52 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 20B768FC14; Sat, 17 Mar 2012 23:38:51 +0000 (UTC) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.5/8.14.2) with ESMTP id q2HNJn7Z025601; Sat, 17 Mar 2012 19:19:49 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.5/8.14.2/Submit) id q2HNJnUB025600; Sat, 17 Mar 2012 19:19:49 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Sat, 17 Mar 2012 19:19:49 -0400 From: David Schultz To: Martin Cracauer Message-ID: <20120317231949.GA25480@zim.MIT.EDU> Mail-Followup-To: Martin Cracauer , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org References: <201202102216.q1AMGI0m098192@svn.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201202102216.q1AMGI0m098192@svn.freebsd.org> Cc: svn-src-head@FreeBSD.ORG, svn-src-all@FreeBSD.ORG, src-committers@FreeBSD.ORG Subject: Re: svn commit: r231449 - head/usr.bin/tee X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Mar 2012 23:38:52 -0000 On Fri, Feb 10, 2012, Martin Cracauer wrote: > Author: cracauer > Date: Fri Feb 10 22:16:17 2012 > New Revision: 231449 > URL: http://svn.freebsd.org/changeset/base/231449 > > Log: > Fix bin/164947: tee looses data when writing to non-blocking file descriptors > > tee was not handling EAGAIN FWIW, I suspect that most programs are unprepared to deal with a non-blocking stdout. I don't think that's a bug on those programs. Back in the 4.X days, there was a bug in the user-level threading library that resulted in stdout being marked nonblocking occasionally, and indeed stuff broke: http://lists.freebsd.org/pipermail/freebsd-hackers/2005-January/009741.html