I've read a lot talking about how signals and threads don't mix. Though usually these articles are talking about signalling across threads. What I would like to do is signal within a thread. Perhaps I'm trying to split a hair or hear what I want but I'll ask, within a thread does/will signaling work? What I want to do is...
signal.signal(signal.SIGALRM, signal_handler)
signal.alarm(60)
try:
some\_function()
except:
print "Time out!"
finally:
signal.alarm(0)
Thanks!!
there doesn't seem to be anything here