diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-07-07 17:32:36 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-07-07 17:32:36 +0000 |
commit | 65d60af0a5097f04accb76b75c49b90d55547c34 (patch) | |
tree | 52a1fee356cbf292505a09b2872e1abe546e2168 /nptl/pthread_getattr_np.c | |
parent | a1ce84f35f28616163778cd63878e12e65ddb97b (diff) |
* pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
cpusetsize if pthread_getaffinity_np failed with ENOSYS.
Diffstat (limited to 'nptl/pthread_getattr_np.c')
-rw-r--r-- | nptl/pthread_getattr_np.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c index 4bdc7b5b15..396e8a8ac8 100644 --- a/nptl/pthread_getattr_np.c +++ b/nptl/pthread_getattr_np.c @@ -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; + } } } |