Skip to content

Commit

Permalink
(pthread_getattr_np): Clear cpuset and cpusetsize if pthread_getaffin…
Browse files Browse the repository at this point in the history
…ity_np failed with ENOSYS.
  • Loading branch information
Ulrich Drepper committed Jun 22, 2007
1 parent a4915df commit a28876d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nptl/pthread_getattr_np.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit a28876d

Please sign in to comment.