Message157156
The documentation of the 'signal' module states on the one hand
[T]he 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).
On the other hand, it provides the function 'pthread_kill()':
Send the signal signum to the thread thread_id, another thread in
the same process as the caller. The signal is asynchronously
directed to thread.
These two passages are in contradiction to each other. The documentation also states that only the main thread can set signal handlers -- if this is true, it is utterly unclear how sending signals to other threads is useful.
Probably the documentation wasn't fully updated when the above function was introduced. |
|
Date |
User |
Action |
Args |
2012-03-30 23:12:58 | smarnach | set | recipients:
+ smarnach, docs@python |
2012-03-30 23:12:58 | smarnach | set | messageid: <1333149178.59.0.333821086904.issue14456@psf.upfronthosting.co.za> |
2012-03-30 23:12:58 | smarnach | link | issue14456 messages |
2012-03-30 23:12:57 | smarnach | create | |
|