4. Ctrl+Cを押しても止まらないプログラムCで書くとvoid sigint_handler(intsigno) {printf("received SIGINT");}void main() { signal(SIGINT, sigint_handler); for (;;) { sleep(1); }} 5. シグナルの使い方Pythonではdefsigint_handler(signo, frame): print "received SIGINT"import signalsignal.signal(signal.SIGINT, sigint_handler)while True:signal.pause()