title: Signal handler for all signal
body: <p>How can I register a signal handler for ALL signal, available on the running OS, using signal(3)?</p>
  
  <p>My code looks like this:</p>
  
  <pre><code>void sig_handler(int signum)
  {
      printf("Received signal %d\n", signum);
  }
  
  
  int main()
  {
      signal(ALL_SIGNALS_??, sig_handler);
      while (1) {
          sleep(1);
      };
      return 0;
  }
  </code></pre>