bin/55346: /bin/sh eats memory and CPU infinitely
Doug White
dwhite at gumbysoft.com
Mon Aug 25 15:56:13 PDT 2003
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-stable
mailing list