summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/ChangeLog.eglibc7
-rw-r--r--libc/nptl/pthread_getattr_np.c8
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;
+ }
}
}