|Killing a blocking thread in python?|
It seems that there is no way of killing a blocking thread in python? The standard way of implementing thread death seems to be to implement an exit() method on the class which is the thread, and then call that when you want the thread to die. However, if the run() method of the thread class is blocking when you call exit(), then the thread doesn't get killed. I can't find a way of killing these threads cleanly on Linux -- does anyone have any hints?
Tags for this post: python blocking thread kill
Related posts: Dealing with remote HTTP servers with buggy chunking implementations; Terrible pong; Python3 venvs for people who are old and grumpy; Python effective TLD library bug fix; On syncing with Google Contacts; SSL, X509, ASN.1 and certificate validity dates
posted at: 14:03 | path: /python | permanent link to this entry