native/unix-spawn-helper/unix-spawn-helper.c [13:22]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void restore_signal(int signum) { struct sigaction action; memset(&action, 0, sizeof(action)); action.sa_handler = SIG_DFL; sigemptyset(&action.sa_mask); action.sa_flags = 0; if (sigaction(signum, &action, NULL) != 0) { fprintf(stderr, "%s(%d): cannot set SIG_DFL for signal %d: %s\n", __FUNCTION__, __LINE__, signum, strerror(errno)); } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - native/exec_pty.c [42:51]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - void restore_signal(int signum) { struct sigaction action; memset(&action, 0, sizeof(action)); action.sa_handler = SIG_DFL; sigemptyset(&action.sa_mask); action.sa_flags = 0; if (sigaction(signum, &action, NULL) != 0) { fprintf(stderr, "%s(%d): cannot set SIG_DFL for signal %d: %s\n", __FUNCTION__, __LINE__, signum, strerror(errno)); } } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -