From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 12 16:24:11 2008 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 5A7BA1065675 for ; Fri, 12 Dec 2008 16:24:11 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx27.mail.ru (mx27.mail.ru [194.67.23.23]) by mx1.freebsd.org (Postfix) with ESMTP id 178568FC12 for ; Fri, 12 Dec 2008 16:24:11 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from [217.25.27.27] (port=56947 helo=[217.25.27.27]) by mx27.mail.ru with asmtp id 1LBAoC-0009je-00; Fri, 12 Dec 2008 19:24:08 +0300 Message-ID: <49429027.8060701@mail.ru> Date: Fri, 12 Dec 2008 20:24:07 +0400 From: rihad User-Agent: Icedove 1.5.0.14eol (X11/20080724) MIME-Version: 1.0 To: Danny Braniss References: <494235CA.2050101@mail.ru> <49426B64.1070004@mail.ru> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: Not detected X-Mras: OK X-Mailman-Approved-At: Fri, 12 Dec 2008 18:34:04 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: preventing FIFO from EOF 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: Fri, 12 Dec 2008 16:24:11 -0000 > BTW, buffer was written way back when memory was measured > in kilobytes and the ethernet was 10 mgb, so things have changed a bit, and > its effectivness is questionable :-) > My scenario: prog1 | prog2 where both are daemons. prog1 does all the work, and sends commands for prog2 to do when needed. I don't want prog1 to block while prog2 is busy executing the command. So a buffer is inserted between the two: prog1 | buffer | prog2 Asynchronous execution of commands. It's as simple as that.