From owner-freebsd-bugs@FreeBSD.ORG Sun Jul 29 01:02:23 2012 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBF1C1065672; Sun, 29 Jul 2012 01:02:23 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 946538FC1E; Sun, 29 Jul 2012 01:02:23 +0000 (UTC) Received: by obbun3 with SMTP id un3so8529621obb.13 for ; Sat, 28 Jul 2012 18:02:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=a7DNUnYVwxkafa7Gp7cdj71AQX5Au5vzXb+8OK8xEmE=; b=yxusplM5g86Wjvns58MG0R7GxDpAHtEsI6wN31ma+LLeioe1AraDRt9PWnjCvBl3E1 M1dd2UsdkgYiS6K/jpRGNYmwGjstbAnlKk83AGDe/fOCKSL6/dJYVUHbAbXCOHVPCYbg eHgll5DqrbrXbRf/e02QFikwAh4Jbh2H4m+uU0uZcZY3sTMwR2ICY41dRmmJEmmpXZbG VuKN/oRsIugoTrNOXEORaxgltBRJkxha/O1rTOr+V7ZnX+UhHPlC3NlUM2g3+mNAwDAY 7oKRkvQtSegZ0eADmnTIsHWRI+9cVaYPqNT+2ltGmxBFYVhnsl7dy9hO4aCQCrcwXrsz ///g== MIME-Version: 1.0 Received: by 10.182.88.9 with SMTP id bc9mr10691035obb.4.1343523743099; Sat, 28 Jul 2012 18:02:23 -0700 (PDT) Received: by 10.76.84.7 with HTTP; Sat, 28 Jul 2012 18:02:23 -0700 (PDT) In-Reply-To: <501482CD.6050708@gmail.com> References: <201207272150.q6RLo9ew012879@freefall.freebsd.org> <501482CD.6050708@gmail.com> Date: Sat, 28 Jul 2012 18:02:23 -0700 Message-ID: From: Garrett Cooper To: davidxu@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bugs@freebsd.org Subject: Re: kern/170203: [kern] piped dd' s don' t behave sanely when dealing with a fifo X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jul 2012 01:02:24 -0000 On Sat, Jul 28, 2012 at 5:24 PM, David Xu wrote: > On 2012/7/28 5:50, Garrett Cooper wrote: >> >> The following reply was made to PR kern/170203; it has been noted by >> GNATS. >> >> From: Garrett Cooper >> To: bug-followup@FreeBSD.org, yanegomi@gmail.com >> Cc: >> Subject: Re: kern/170203: [kern] piped dd's don't behave sanely >> when >> dealing with a fifo >> Date: Fri, 27 Jul 2012 14:47:47 -0700 >> >> Hi David! >> I'll give the patches you provided a shot this weekend. > > FIFO pipe is quite broken! Beside the bug you have reported, there is > another bug, > when a writer closed the pipe, select() on reader side will never return ! > I am curious that so long time, nobody found the bugs, does it because FIFO > is seldom used by people ? Hmmm.. that's unfortunate. If you have a test program you can provide then I can test on a 7.x variant of FreeBSD as well as FreeBSD 8.3 (I'm curious as to whether or not it's fallout from recent refactoring related to pipe(2), which I don't believe made it back to 8.x). Thanks! -Garrett