Re: simple threading.Thread and Semaphores hang

2010-12-06 Thread Alain Ketterlin
lnenov writes: > My application hangs on exit. > I have isoleted this piece of code that reproduces the error: (the > time module is extra and not needed to reproduce) > > import threading > import time > > def func(): > b = threading.Semaphore(value=0) > b.acquire() This waits for the s

simple threading.Thread and Semaphores hang

2010-12-06 Thread lnenov
Hi, My application hangs on exit. I have isoleted this piece of code that reproduces the error: (the time module is extra and not needed to reproduce) import threading import time def func(): b = threading.Semaphore(value=0) b.acquire() a = threading.Thread(target=func) a.start() ti