title: signal handler function keeps looping
body: <p>My function created to handle the SIGINT signal is stuck in a constant loop. The idea is to make CTRL-C ignored by the parent process but sent to the child process (and they handle it as default). What happens is when I press CTRL-C, the signal handler function is called but gets stuck in an endless loop. The kill call is supposed to send SIGTERM to all process in the process group except for the sender process. Any help would be appreciated.</p>
  
  <p>the function code is:</p>
  
  <pre><code>void intHandler(int signum) {
  kill(0, SIGTERM);
  </code></pre>
  
  <p>}</p>
  
  <p>the function call code (in main) is:</p>
  
  <pre><code>(void) sigset(SIGINT, intHandler);
  </code></pre>