On Fri, Feb 5, 2010 at 7:25 AM, mk <mrk...@gmail.com> wrote:

> Hello everyone,
>
> I have a problem with a threaded program: it frequently hangs on sys.exit.
>

I use threads all the time (well, for certain types of workloads) and have
never seen this.

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.

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.

--S
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to