diff options
author | paul <paul@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2008-04-16 18:51:55 +0000 |
---|---|---|
committer | paul <paul@7b3dc134-2b1b-0410-93df-9e9f96275f8d> | 2008-04-16 18:51:55 +0000 |
commit | f129caa9984463165f15cce6cc582238ac349b75 (patch) | |
tree | 902d3e66b78307a9a451b779837df9c199b79900 | |
parent | bb90e172dc49c6058fd54e5f236d7b51b5ffe2d1 (diff) | |
download | eglibc2-eglibc-2_5.tar.gz |
2008-04-16 Paul Brook <paul@codesourcery.com>eglibc-2_5
Backport:
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.
git-svn-id: svn://svn.eglibc.org/branches/eglibc-2_5@5951 7b3dc134-2b1b-0410-93df-9e9f96275f8d
-rw-r--r-- | libc/ChangeLog.eglibc | 7 | ||||
-rw-r--r-- | libc/nptl/pthread_getattr_np.c | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/libc/ChangeLog.eglibc b/libc/ChangeLog.eglibc index 77d9cc70c..8fd1a9d9d 100644 --- a/libc/ChangeLog.eglibc +++ b/libc/ChangeLog.eglibc @@ -1,3 +1,10 @@ +2008-04-16 Paul Brook <paul@codesourcery.com> + + Backport: + 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. + 2008-04-11 Paul Brook <paul@codesourcery.com> * Versions.def: Add GLIBC_2.8 for backported symbols. diff --git a/libc/nptl/pthread_getattr_np.c b/libc/nptl/pthread_getattr_np.c index 4bdc7b5b1..396e8a8ac 100644 --- a/libc/nptl/pthread_getattr_np.c +++ b/libc/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; + } } } |