ext/iodine/fio.c
/* initializes zombie reaping for the process */
initializes zombie reaping for the process
initializes zombie reaping for the process
void fio_reap_children(void) {
  struct sigaction sa;
  if (fio_old_sig_chld.sa_handler)
    return;
  sa.sa_handler = reap_child_handler;
  sigemptyset(&sa.sa_mask);
  sa.sa_flags = SA_RESTART | SA_NOCLDSTOP;
  if (sigaction(SIGCHLD, &sa, &fio_old_sig_chld) == -1) {
    perror("Child reaping initialization failed");
    kill(0, SIGINT);
    exit(errno);
  }
}
void fio_reap_children ( void ) { struct sigaction sa ; if ( fio_old_sig_chld . sa_handler ) return ; sa . sa_handler = reap_child_handler ; sigemptyset ( & sa . sa_mask ) ; sa . sa_flags = SA_RESTART | SA_NOCLDSTOP ; if ( sigaction ( SIGCHLD , & sa , & fio_old_sig_chld ) == -1 ) { perror ( " " ) ; kill ( 0 , SIGINT ) ; exit ( errno ) ; } }
initializes zombie reaping for the process
initializes zombie reaping for the process