title: Termination Signal or Interrupts like Ctrl+C on Linux
body: <p>I want to run a process that checks my key press state,  parallel to my existing infinite loop (from pcap header). I was looking something very similar to GetAsyncKeyState that of Windows.</p>
  
  <p>I tried for a whole week and found its hard to program something similar to GetAsyncKeyState. So, I was using Termination Signal like ctrl+c to perform certain operation. </p>
  
  <p>I wanted to know, if there are some other similar Termination signals that I can catch using program to perform operation of my own?</p>
  
  <p>P.S. I'm a  beginner for Linux and C++. Sorry, if my question is stupid.</p>