On Fri, Feb 5, 2010 at 7:25 AM, mk <span dir="ltr"><<a href="mailto:mrkafk@gmail.com">mrkafk@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;">
Hello everyone,<br>
<br>
I have a problem with a threaded program: it frequently hangs on sys.exit.<br></blockquote><div><br></div><div>I use threads all the time (well, for certain types of workloads) and have never seen this.</div><div><br></div>
<div>Are your threads daemon threads? The only time I've seen sys.exit() not close out my program is when I'm launching non-daemon threads on accident.</div><div><br></div><div>Now, I do get some slightly random errors on close due to threads doing stuff or returning from doing stuff while the shutdown procedure is going on, but I don't really care, cuz, well, I'm shutting everything down and nothing worth knowing is going on in the rest of the program.</div>
<div><br></div></div><div name="mailplane_signature">--S</div>