Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Aug 2003 16:00:36 -0700 (PDT)
From:      Doug White <dwhite@gumbysoft.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/55346: /bin/sh eats memory and CPU infinitely
Message-ID:  <200308252300.h7PN0aph068373@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/55346; it has been noted by GNATS.

From: Doug White <dwhite@gumbysoft.com>
To: Eugene Grosbein <eugen@kuzbass.ru>
Cc: David Schultz <das@FreeBSD.ORG>, 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308252300.h7PN0aph068373>