If initial thread is still a bound thread, don't change its signal mask.

This commit is contained in:
David Xu 2003-07-15 14:04:38 +00:00
parent 1fa84077e8
commit af161f2232
2 changed files with 2 additions and 2 deletions

View File

@ -750,7 +750,7 @@ kse_create(struct thread *td, struct kse_create_args *uap)
upcall_free(newku);
return (EPROCLIM);
}
if (first) {
if (first && sa) {
SIGSETOR(p->p_siglist, td->td_siglist);
SIGEMPTYSET(td->td_siglist);
SIGFILLSET(td->td_sigmask);

View File

@ -750,7 +750,7 @@ kse_create(struct thread *td, struct kse_create_args *uap)
upcall_free(newku);
return (EPROCLIM);
}
if (first) {
if (first && sa) {
SIGSETOR(p->p_siglist, td->td_siglist);
SIGEMPTYSET(td->td_siglist);
SIGFILLSET(td->td_sigmask);