From owner-freebsd-bugs@FreeBSD.ORG Mon Aug 25 16:00:37 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37BB016A4BF for ; Mon, 25 Aug 2003 16:00:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD12743FA3 for ; Mon, 25 Aug 2003 16:00:36 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h7PN0aUp068374 for ; Mon, 25 Aug 2003 16:00:36 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h7PN0aph068373; Mon, 25 Aug 2003 16:00:36 -0700 (PDT) Date: Mon, 25 Aug 2003 16:00:36 -0700 (PDT) Message-Id: <200308252300.h7PN0aph068373@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Doug White Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Doug White List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Aug 2003 23:00:37 -0000 The following reply was made to PR bin/55346; it has been noted by GNATS. From: Doug White To: Eugene Grosbein Cc: David Schultz , stable@FreeBSD.ORG, bug-followup@FreeBSD.ORG Subject: Re: bin/55346: /bin/sh eats memory and CPU infinitely Date: Mon, 25 Aug 2003 15:56:12 -0700 (PDT) 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