Remove sigaction emulation
Use SA_INTERRUPT in sa_flags
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user