From Trivial Leopard, 8 Months ago, written in C.
  1. #include <stdbool.h>
  2. #include <signal.h>
  3. #include <stdio.h>
  4.  
  5. void sigint_handler(int num) {
  6.     printf("SIGINT: %d\n", num);
  7. }
  8.  
  9. int main(void) {
  10.     signal(SIGINT, sigint_handler);
  11.     while (true) {
  12.     }
  13. }
  14.  
captcha