(pthread_getattr_np): Clear cpuset and cpusetsize if pthread_getaffinity_np failed with ENOSYS.

This commit is contained in:
Ulrich Drepper 2007-06-22 22:13:52 +00:00
parent a4915df27a
commit a28876d013

View File

@ -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;
}
}
}