[Python-Dev] Killing threads
Aahz Maruch
aahz@rahul.net
Wed, 23 May 2001 07:08:45 -0700 (PDT)
Okay, so we all know it isn't possible to kill threads cleanly and
safely in any kind of cross-platform way. At the same time, a program
that has a thread running haywire should be able to kill itself
completely, so that a monitoring process can restart it. How hard would
it be to do only that in a cross-platform way?
I'm guessing that for Unix, we'd just send a hard signal (9 or 15). No
clue what would need to happen for Windows and Mac.
(This got brought up because I experimented with os._exit() as a
possible solution, but that GPFs on Win98SE.)
--
--- Aahz (@pobox.com)
Hugs and backrubs -- I break Rule 6 <*> http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista
I don't really mind a person having the last whine, but I do mind
someone else having the last self-righteous whine.