I waste a lot of my time figuring why this snip of code doesn`t work.
And still without any solution ;/
Does anybody know why this handler cannot handle SIGINT signal? What
did I wrong?
Thanks in advance.
from threading import *
def siginthandler(signum, frame):
work = 0
work = 1
signal.signal (signal.SIGINT, siginthandler)
print 'wait for SIGINT signal'
cv = Condition ()
print 'woke up'