Fix a bogus comment, sigmask must be maintained correctly,

it will be inherited in pthread_create.
This commit is contained in:
David Xu 2003-09-15 00:06:46 +00:00
parent 6acbe3f2fa
commit b9fe6075a0
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ _pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
ret = __sys_sigprocmask(how, set, oset);
if (ret != 0)
ret = errno;
/* Get a copy for thread dump */
/* Get a fresh copy */
__sys_sigprocmask(SIG_SETMASK, NULL, &curthread->sigmask);
return (ret);
}

View File

@ -53,7 +53,7 @@ _pthread_sigmask(int how, const sigset_t *set, sigset_t *oset)
ret = __sys_sigprocmask(how, set, oset);
if (ret != 0)
ret = errno;
/* Get a copy for thread dump */
/* Get a fresh copy */
__sys_sigprocmask(SIG_SETMASK, NULL, &curthread->sigmask);
return (ret);
}