title: send SIGINT to child process
body: <p>I am trying to create a child process and then send SIGINT to the child without terminating the parent. I tried this:</p>
  
  <pre><code>pid=fork();
    if (!pid)
    {
        setpgrp();
        cout&lt;&lt;"waiting...\n";
        while(1);
    }
    else
        {
        cout&lt;&lt;"parent";
        wait(NULL);
        }
  </code></pre>
  
  <p>but when I hit C-c both process were terminated</p>