Skip to content

Commit

Permalink
* pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
Browse files Browse the repository at this point in the history
	cpusetsize if pthread_getaffinity_np failed with ENOSYS.
  • Loading branch information
Jakub Jelinek committed Jul 7, 2007
1 parent a1ce84f commit 65d60af
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions nptl/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2007-06-22 Jakub Jelinek <jakub@redhat.com>

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

2007-05-28 Jakub Jelinek <jakub@redhat.com>

* sysdeps/i386/tls.h (THREAD_GSCOPE_RESET_FLAG): Use explicit
Expand Down
8 changes: 6 additions & 2 deletions nptl/pthread_getattr_np.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,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 65d60af

Please sign in to comment.