From owner-freebsd-stable@FreeBSD.ORG Mon Aug 25 15:56:13 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8172716A4BF; Mon, 25 Aug 2003 15:56:13 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id F307643FB1; Mon, 25 Aug 2003 15:56:12 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id DF14272DD4; Mon, 25 Aug 2003 15:56:12 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id D9AC172DD2; Mon, 25 Aug 2003 15:56:12 -0700 (PDT) Date: Mon, 25 Aug 2003 15:56:12 -0700 (PDT) From: Doug White To: Eugene Grosbein In-Reply-To: <3F4A02E8.F80F62A7@kuzbass.ru> Message-ID: <20030825155537.B10668@carver.gumbysoft.com> References: <20030815211321.A11482@grosbein.pp.ru> <20030824185618.GA3837@HAL9000.homeunix.com> <3F4A02E8.F80F62A7@kuzbass.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: David Schultz cc: stable@FreeBSD.ORG cc: bug-followup@FreeBSD.ORG Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 22:56:13 -0000 On Mon, 25 Aug 2003, Eugene Grosbein wrote: > > The general problem you're complaining about (here and earlier) is > > that /bin/sh only checks for the termination of backgrounded > > children when it displays a prompt, and of course it doesn't do > > that in the middle of a while loop. I don't know what the various > > standards have to say about this, but the behavior is probably > > just a bug. > > Yes it is. Both bash and zsh do not behave so. try 'set -b'. The man page says its unimplmented, but its worth a spin. That or feel free to implement it :) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org