bin/55346: /bin/sh eats memory and CPU infinitely

Doug White dwhite at gumbysoft.com
Mon Aug 25 16:00:37 PDT 2003


The following reply was made to PR bin/55346; it has been noted by GNATS.

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


More information about the freebsd-bugs mailing list