def _installHandlerUsingSetWakeup(fd):
 if (fd == (-1)):
  signal.signal(signal.SIGCHLD, signal.SIG_DFL)
 else:
  signal.signal(signal.SIGCHLD, _Handler(None))
  siginterrupt(signal.SIGCHLD, False)
 return set_wakeup_fd(fd)

def _installHandlerUsingSetWakeup ( fd ) : if ( fd == ( - 1 ) ) : signal . signal ( signal . SIGCHLD , signal . SIG_DFL ) else : signal . signal ( signal . SIGCHLD , _Handler ( None ) ) siginterrupt ( signal . SIGCHLD , False ) return set_wakeup_fd ( fd )
install a signal handler which will write a byte to c{fd} when i{sigchld} is received .