mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Return previous sigaction correctly.
Submitted by: avg
This commit is contained in:
parent
322a8adaa3
commit
6ed79f06f4
1 changed files with 4 additions and 1 deletions
|
|
@ -547,7 +547,10 @@ _sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
|
|||
|
||||
if (oldact.sa_handler != SIG_DFL &&
|
||||
oldact.sa_handler != SIG_IGN) {
|
||||
oldact = _thr_sigact[sig-1].sigact;
|
||||
if (act != NULL)
|
||||
oldact = oldact2;
|
||||
else if (oact != NULL)
|
||||
oldact = _thr_sigact[sig-1].sigact;
|
||||
}
|
||||
|
||||
_thr_rwl_unlock(&_thr_sigact[sig-1].lock);
|
||||
|
|
|
|||
Loading…
Reference in a new issue