From owner-freebsd-hackers Mon Jan 4 20:09:20 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA23647 for freebsd-hackers-outgoing; Mon, 4 Jan 1999 20:09:20 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA23642 for ; Mon, 4 Jan 1999 20:09:19 -0800 (PST) (envelope-from tlambert@usr05.primenet.com) Received: from smtp03.primenet.com (daemon@smtp03.primenet.com [206.165.6.133]) by freefall.freebsd.org (8.8.8/8.8.5) with ESMTP id UAA08668 for ; Mon, 4 Jan 1999 20:09:12 -0800 (PST) Received: (from daemon@localhost) by smtp03.primenet.com (8.8.8/8.8.8) id VAA17260; Mon, 4 Jan 1999 21:08:51 -0700 (MST) Received: from usr05.primenet.com(206.165.6.205) via SMTP by smtp03.primenet.com, id smtpd017168; Mon Jan 4 21:08:42 1999 Received: (from tlambert@localhost) by usr05.primenet.com (8.8.5/8.8.5) id VAA05311; Mon, 4 Jan 1999 21:08:33 -0700 (MST) From: Terry Lambert Message-Id: <199901050408.VAA05311@usr05.primenet.com> Subject: Re: Interesting un-interruptible shell script on 3.0-RELEASE (possible sh bug?) To: cracauer@cons.org (Martin Cracauer) Date: Tue, 5 Jan 1999 04:08:33 +0000 (GMT) Cc: rivers@dignus.com, cracauer@cons.org, freebsd-hackers@freefall.cdrom.com In-Reply-To: <19981222182157.A5343@cons.org> from "Martin Cracauer" at Dec 22, 98 06:21:57 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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