From owner-freebsd-questions@FreeBSD.ORG Thu Dec 6 20:21:18 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8C52D17; Thu, 6 Dec 2012 20:21:18 +0000 (UTC) (envelope-from coco@executive-computing.de) Received: from mail.moehre.org (mail.moehre.org [195.96.35.7]) by mx1.freebsd.org (Postfix) with ESMTP id 67E208FC15; Thu, 6 Dec 2012 20:21:18 +0000 (UTC) Received: from mail.moehre.org (unknown [195.96.35.7]) by mail.moehre.org (Postfix) with ESMTP id 2F57C8B14E4; Thu, 6 Dec 2012 21:21:17 +0100 (CET) X-Spam-Flag: NO X-Spam-Score: -100.965 X-Spam-Level: X-Spam-Status: No, score=-100.965 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, AWL=0.035, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mail.moehre.org ([195.96.35.7]) by mail.moehre.org (mail.moehre.org [195.96.35.7]) (amavisd-new, port 10024) with ESMTP id sj4PvUE2HOyy; Thu, 6 Dec 2012 21:21:12 +0100 (CET) Received: from [192.168.100.30] (p54B0A324.dip.t-dialin.net [84.176.163.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: coco@executive-computing.de) by mail.moehre.org (Postfix) with ESMTPSA id 19BCB8B14E2; Thu, 6 Dec 2012 21:21:12 +0100 (CET) Message-ID: <50C0FE2E.8090606@executive-computing.de> Date: Thu, 06 Dec 2012 21:21:02 +0100 From: Marco Steinbach User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: David Xu Subject: Re: grep -Dskip doesn't skip FIFOs References: <50C010D0.3070205@freebsd.org> In-Reply-To: <50C010D0.3070205@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Dec 2012 20:21:18 -0000 David Xu wrote on 06.12.2012 04:28: > On 2012/12/06 07:07, Marco Steinbach wrote: >> Hi there, >> >> grep(1) does not seem to skip FIFOs when told to. > > > > I think you need a patch to fix it, the bug is in ggrep, it tries to > open a FIFO before checking if it is a FIFO, then blocked. > > http://people.freebsd.org/~davidxu/patch/grep.c.diff This patch seems to fix it. Thank you for taking care of this. MfG CoCo