Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Jan 1999 04:08:33 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        cracauer@cons.org (Martin Cracauer)
Cc:        rivers@dignus.com, cracauer@cons.org, freebsd-hackers@freefall.cdrom.com
Subject:   Re: Interesting un-interruptible shell script on 3.0-RELEASE (possible sh bug?)
Message-ID:  <199901050408.VAA05311@usr05.primenet.com>
In-Reply-To: <19981222182157.A5343@cons.org> from "Martin Cracauer" at Dec 22, 98 06:21:57 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> What is needed here is that sh breaks the loop (instead of exiting
> itself) if a child inside a loop exists with WIFSIGNALED(status). This
> is not trivial to implement since you can have nested loops and want
> to break the outermost. Also, I'll have to see what POSIX sais about
> the issue (yes, the fat book arrived and is paid :-).
> 
> I'll give it a shot over the holidays, for now I'll file a PR to
> document the issue.

Recurse.

Have the loop exit with status equivalent to WIFSIGNALED(status) from
the child.


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



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