mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Don't automatically restart syscalls for the signals that the thread
kernel needs.
This commit is contained in:
parent
353a159590
commit
5f867deba5
4 changed files with 4 additions and 4 deletions
|
|
@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
|
|||
sig != SIGINFO) {
|
||||
/* Initialise the global signal action structure: */
|
||||
gact.sa_mask = act->sa_mask;
|
||||
gact.sa_flags = act->sa_flags | SA_RESTART;
|
||||
gact.sa_flags = 0;
|
||||
|
||||
/*
|
||||
* Check if the signal handler is being set to
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ _thread_sys_signal(int s, sig_t a)
|
|||
/* Initialise the signal action structure: */
|
||||
sigemptyset(&sa.sa_mask);
|
||||
sa.sa_handler = a;
|
||||
sa.sa_flags = SA_RESTART;
|
||||
sa.sa_flags = 0;
|
||||
|
||||
/* Perform the sigaction syscall: */
|
||||
if (_thread_sys_sigaction(s, &sa, &osa) < 0) {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
|
|||
sig != SIGINFO) {
|
||||
/* Initialise the global signal action structure: */
|
||||
gact.sa_mask = act->sa_mask;
|
||||
gact.sa_flags = act->sa_flags | SA_RESTART;
|
||||
gact.sa_flags = 0;
|
||||
|
||||
/*
|
||||
* Check if the signal handler is being set to
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
|
|||
sig != SIGINFO) {
|
||||
/* Initialise the global signal action structure: */
|
||||
gact.sa_mask = act->sa_mask;
|
||||
gact.sa_flags = act->sa_flags | SA_RESTART;
|
||||
gact.sa_flags = 0;
|
||||
|
||||
/*
|
||||
* Check if the signal handler is being set to
|
||||
|
|
|
|||
Loading…
Reference in a new issue