title: how catch a segfault without core dump
body: <p>i am doing a program that must know if his child had segfault while executing.</p>
  
  <p>for the segfault with core dump and without. for the first one i did it without probleme, but i cant find what could it be that make me un able to catch this signal. acording to man page i should receive 10,7,10, but im not sure of what it meant and i only can try one of them, but both 10 and 7 had done nothing</p>
  
  <pre><code>if (WTERMSIG(status) == 10)
      my_putstr("Segmentation fault \n");
  else if (WTERMSIG(status) == 11)
      my_putstr("Segmentation fault (core dumped)\n");
  </code></pre>