mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
(pthread_getattr_np): Clear cpuset and cpusetsize if pthread_getaffinity_np failed with ENOSYS.
This commit is contained in:
parent
a4915df27a
commit
a28876d013
@ -164,8 +164,12 @@ pthread_getattr_np (thread_id, attr)
|
||||
{
|
||||
free (cpuset);
|
||||
if (ret == ENOSYS)
|
||||
/* There is no such functionality. */
|
||||
ret = 0;
|
||||
{
|
||||
/* There is no such functionality. */
|
||||
ret = 0;
|
||||
iattr->cpuset = NULL;
|
||||
iattr->cpusetsize = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user