Fix a bogus comment, sigmask must be maintained correctly,
it will be inherited in pthread_create.
This commit is contained in:
parent
6acbe3f2fa
commit
b9fe6075a0
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user