Remove sigaction emulation

Use SA_INTERRUPT in sa_flags
This commit is contained in:
Todd C. Miller
2010-06-10 15:18:23 -04:00
parent e54cfc9bd4
commit 047fc3876d
9 changed files with 17 additions and 167 deletions

View File

@@ -532,7 +532,7 @@ fork_pty(struct command_details *details, char *argv[], char *envp[],
}
/* Job control signals to relay from parent to child. */
sa.sa_flags = 0; /* do not restart syscalls */
sa.sa_flags = SA_INTERRUPT; /* do not restart syscalls */
sa.sa_handler = handler;
sigaction(SIGTSTP, &sa, NULL);
#if 0 /* XXX - add these? */
@@ -823,7 +823,7 @@ exec_monitor(struct command_details *details, char *argv[], char *envp[],
sigaction(SIGTTOU, &sa, NULL);
/* Note: HP-UX select() will not be interrupted if SA_RESTART set */
sa.sa_flags = 0;
sa.sa_flags = SA_INTERRUPT;
sa.sa_handler = handler;
sigaction(SIGCHLD, &sa, NULL);