def hanged_process(*args, **kwargs):
 def handler(sig, frame):
  send('SIGINT')
 signal.signal(signal.SIGINT, handler)
 send('STARTED')
 while True:
  signal.pause()
 send('STOPPED')

def hanged_process ( * args , ** kwargs ) : def handler ( sig , frame ) : send ( 'SIGINT' ) signal . signal ( signal . SIGINT , handler ) send ( 'STARTED' ) while True : signal . pause ( ) send ( 'STOPPED' )
ignores sigint signal .