From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <481076362d986b152659876e17aaa483@quanstro.net> From: erik quanstrom Date: Thu, 19 Feb 2009 12:15:52 -0500 To: 9fans@9fans.net In-Reply-To: <509071940902190838h20fb2ccep6d38317b13f713e6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] rc for loop exiting from emu on Plan 9 Topicbox-Message-UUID: a3daeb18-ead4-11e9-9d60-3106f5b1d025 > for (i in `{seq 1 100}) {echo BEGIN RUN $i ; emu sh -c > /usr/a/bin/sh/emuerr; echo END RUN $i ; echo} > [...] > > what is rc confused about? > i think the question is, what does emu do to rc. i think it kills the note group: minooka; rc -c '@{emu sh -c date}; echo done' Thu Feb 19 17:13:08 GMT 2009 minooka; rc -c '@{rfork s; emu sh -c date}; echo done' Thu Feb 19 17:13:34 GMT 2009 done it might make sense for emu to rfork its own note group if it is going to killpg. - erik