killing thread ?

Irmen de Jong irmen at NOSPAM-REMOVETHIS-xs4all.nl
Fri Jan 24 10:23:27 EST 2003


Martin v. Löwis wrote:
> Uwe Schmitt wrote:
> 
>> But what if I want to end a thread which hangs because
>> it uses 'exec' on some code which loops forever ?
> 
> 
> You lose. There is no way to cancel a thread, period.
> 

Can't you cheat on linux by sending SIGKILL to the thread's PID?? ;-)

Irmen





More information about the Python-list mailing list