]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
2007-06-22 Jakub Jelinek <jakub@redhat.com>
authorJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:35:28 +0000 (15:35 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 12 Jul 2007 15:35:28 +0000 (15:35 +0000)
* pthread_getattr_np.c (pthread_getattr_np): Clear cpuset and
cpusetsize if pthread_getaffinity_np failed with ENOSYS.

nptl/ChangeLog
nptl/pthread_getattr_np.c

index 97036aa2f83f99dc8108d7b1c18d18b5b0e2cacb..6fa76ca4e57ef6caa22e2ffb2bfc0a38c6a8e0e4 100644 (file)
@@ -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
index 4bdc7b5b150a853e26162f4c342257b9a1642f4d..396e8a8ac8473e3b57f4e26fff4b8db10c018f1e 100644 (file)
@@ -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;
+           }
        }
     }