1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00

Remove incorrect comments, also make sure signal is

disabled when unregistering sigaction.
This commit is contained in:
David Xu 2010-09-01 13:22:55 +00:00
parent 0090656231
commit 21a9296f63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212095

View File

@ -415,19 +415,17 @@ _thr_signal_init(void)
__sys_sigprocmask(SIG_UNBLOCK, &act.sa_mask, NULL);
}
/*
* called from rtld with rtld_lock locked, because rtld_lock is
* a critical region, so all signals have already beeen masked.
*/
void
_thr_sigact_unload(struct dl_phdr_info *phdr_info)
{
struct pthread *curthread = _get_curthread();
struct urwlock *rwlp;
struct sigaction *actp;
struct sigaction kact;
void (*handler)(int);
int sig;
_thr_signal_block(curthread);
for (sig = 1; sig < _SIG_MAXSIG; sig++) {
actp = &_thr_sigact[sig].sigact;
retry:
@ -447,9 +445,10 @@ _thr_sigact_unload(struct dl_phdr_info *phdr_info)
kact.sa_handler != SIG_DFL &&
kact.sa_handler != SIG_IGN)
__sys_sigaction(sig, actp, NULL);
_thr_rwl_unlock(rwlp);
_thr_rwl_unlock(rwlp);
}
}
_thr_signal_unblock(curthread);
}
void