On Tue, Feb 19, 2013 at 2:23 PM, Isaac Jurado <span dir="ltr"><<a href="mailto:diptongo@gmail.com" target="_blank">diptongo@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="im">> +                problem[0] = _exitstatus(st)<br>
<br>
</div></div>This single element list looks quite strange.  Does it have to do with<br>
working around the closure or the scoping?</blockquote><div><br></div><div>Welcome to Python, where we can't have nice lexically scoped things.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">> +    t = threading.Thread(target=waitforworkers)<br>
> +    t.start()<br>
<br>
</div>Please pardon my ignorance, but the execution flow is starting to get<br>
confusing.  If I understood correctly, the idea is to kill the other<br>
children whenever one fails, right?<br></blockquote><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What about putting all workers in the same process group, but different<br>
to the parent?</blockquote></div><br><div>Process groups only exist on Unix. This code should (mostly?) work untouched on other platforms.</div>