sigaction
struct sigaction sigchld_action = { .sa_handler = SIG_DFL,.sa_flags = SA_NOCLDWAIT }; sigaction(SIGCHLD,&sigchld_action,NULL);