Python SIGINT not catched
问题 I don't manage to understand why my SIGINT is never catched by the piece of code below. #!/usr/bin/env python from threading import Thread from time import sleep import signal class MyThread(Thread): def __init__(self): Thread.__init__(self) self.running = True def stop(self): self.running = False def run(self): while self.running: for i in range(500): col = i**i print col sleep(0.01) global threads threads = [] for w in range(150): threads.append(MyThread()) def stop(s, f): for t in threads: