optimize compound-literal sigset_t's not to contain useless hurd bits
This commit is contained in:
1 parent
99b8a25e94
commit
4c4e22d781
3 files changed
+7
-5
No files matched your search
@@ -45,7 +45,7 @@ static int start(void *p)
|
||||
{
|
||||
struct pthread *self = p;
|
||||
if (self->unblock_cancel)
|
||||
__syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, &SIGPT_SET, 0, 8);
|
||||
__syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGPT_SET, 0, 8);
|
||||
pthread_exit(self->start(self->start_arg));
|
||||
return 0;
|
||||
}
|
||||
@@ -68,7 +68,7 @@ int pthread_create(pthread_t *res, const pthread_attr_t *attr, void *(*entry)(vo
|
||||
|
||||
if (!self) return ENOSYS;
|
||||
if (!libc.threaded) {
|
||||
__syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, &SIGPT_SET, 0, 8);
|
||||
__syscall(SYS_rt_sigprocmask, SIG_UNBLOCK, SIGPT_SET, 0, 8);
|
||||
libc.threaded = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user