From owner-freebsd-questions@FreeBSD.ORG Thu Dec 20 16:03:07 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E1816A417 for ; Thu, 20 Dec 2007 16:03:07 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 16E9013C448 for ; Thu, 20 Dec 2007 16:03:06 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id lBKG314m058869 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Dec 2007 11:03:01 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id lBKG2xh7058868; Thu, 20 Dec 2007 11:02:59 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: Erik Osterholm Date: Thu, 20 Dec 2007 11:02:59 -0500 User-Agent: KMail/1.9.7 References: <200712192322.lBJNMfps053071@aldan.algebra.com> <200712200540.11553@aldan> <20071220155336.GA31047@aleph.cepheid.org> In-Reply-To: <20071220155336.GA31047@aleph.cepheid.org> X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: questions@freebsd.org, "Max N. Boyarov" Subject: Re: tail does not exit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2007 16:03:07 -0000 On =DE=C5=D4=D7=C5=D2 20 =C7=D2=D5=C4=C5=CE=D8 2007, Erik Osterholm wrote: =3D The same behavior happens if I use a larger file. =9AI see no =3D inconsistent behavior, nor any bugs. The inconsistency is in the fact, that the behavior depends on the size of = the=20 buffer and length of the lines (not the size of the file). If the 10 lines, which tail tries to output initially, exceed the size of t= he=20 buffer, tail learns about awk going away immediately. If the lines are not= =20 long enough, it does not. Also, I would expect a program to be notified (by SIGPIPE?) /immediately/,= =20 when any of its output pipes are closed -- instead of waiting for it to try= =20 to write into the pipe. But this issue is not, it seems, FreeBSD-specific... -mi