From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 6 07:52:53 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 7B4F4106564A for ; Thu, 6 Nov 2008 07:52:53 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from mx71.mail.ru (mx71.mail.ru [194.67.23.4]) by mx1.freebsd.org (Postfix) with ESMTP id 38A838FC1B for ; Thu, 6 Nov 2008 07:52:52 +0000 (UTC) (envelope-from rihad@mail.ru) Received: from [217.25.27.27] (port=12520 helo=[217.25.27.27]) by mx71.mail.ru with asmtp id 1Kxzff-000JZ2-00; Thu, 06 Nov 2008 10:52:51 +0300 Message-ID: <4912A251.8010604@mail.ru> Date: Thu, 06 Nov 2008 11:52:49 +0400 From: rihad User-Agent: Icedove 1.5.0.14eol (X11/20080724) MIME-Version: 1.0 To: Nate Eldredge References: <4911A23B.7050104@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: Thu, 06 Nov 2008 12:12:45 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Asynchronous pipe I/O 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: Thu, 06 Nov 2008 07:52:53 -0000 Nate Eldredge wrote: > sh prog1 > tmpfile & > tail -f -c +0 tmpfile | sh prog2 > BTW, I don't think this would solve my problem as tail -f would block waiting for more data, as would prog2, so after prog1 finishes writing data they would block indefinitely on input. I forgot to mention this was supposed to be a short-lived pipeline, not daemons, as you had probably thought. Also, I've already learned how to use misc/buffer correctly so the problem's gone. Thank you for your time.