native/exec_pty.c [37:56]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - extern int ptys_open(int fdm, const char *pts_name, bool acquire); extern void set_noecho(int fd); 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)); } } void restore_signals() { restore_signal(SIGPIPE); restore_signal(SIGINT); restore_signal(SIGQUIT); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - native/unix-spawn-helper/unix-spawn-helper.c [9:27]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - extern int ptys_open(int fdm, const char *pts_name, bool acquire); extern void set_noecho(int fd); 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)); } } void restore_signals() { restore_signal(SIGPIPE); restore_signal(SIGINT); restore_signal(SIGQUIT); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -