title: How to get id of process from which came signal in Python?
body: <p>Please see following Python code:</p>
  
  <pre><code>def Handler(signum, frame):
      #do something
  signal.signal(signal.SIGCHLD, Handler)
  </code></pre>
  
  <p>Is there a way to get process ID from which signal came from?
  Or is there another way to get process ID from which signal came from without blocking main flow of application?</p>