I've been looking all over the place for a good timeout script that can kill a thread if it's been active for more than X seconds, but all the examples I've seen have flaws that don't always stop the thread. Using thread.join(x) ends up defeating the purpose of it being a thread.
The only decent example I've found is http://stackoverflow.com/questions/492519/timeout-on-a-python-function-call and that one's not without its flaws..
Anyone know of a better way to do this?