Message96393
The spec broken is here:
http://docs.python.org/library/signal.html
Namely:
# Some care must be taken if both signals and threads are used in the
same program. The fundamental thing to remember in using signals and
threads simultaneously is: always perform signal() operations in the
main thread of execution. Any thread can perform an alarm(),
getsignal(), pause(), setitimer() or getitimer(); only the main thread
can set a new signal handler, and the main thread will be the only one
to receive signals (this is enforced by the Python signal module, even
if the underlying thread implementation supports sending signals to
individual threads). This means that signals can’t be used as a means of
inter-thread communication. Use locks instead. |
|
Date |
User |
Action |
Args |
2009-12-14 18:52:19 | movement | set | recipients:
+ movement, gvanrossum, exarkun, Rhamphoryncus, pitrou, ross, bamby, laca, mstepnicki |
2009-12-14 18:52:19 | movement | set | messageid: <1260816739.78.0.915128917198.issue1975@psf.upfronthosting.co.za> |
2009-12-14 18:52:18 | movement | link | issue1975 messages |
2009-12-14 18:52:18 | movement | create | |
|