title: Finding the process which sent signal in c
body: <p>I have a child process which might receive sigterm signal from its parent or from somewhere else. I have to take appropriate action if the signal is from parent. 
  How can i find if the received signal is from parent in c(linux)?</p>