projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4915df
)
(pthread_getattr_np): Clear cpuset and cpusetsize if pthread_getaffinity_np failed...
author
Ulrich Drepper
<drepper@redhat.com>
Fri, 22 Jun 2007 22:13:52 +0000
(22:13 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Fri, 22 Jun 2007 22:13:52 +0000
(22:13 +0000)
nptl/pthread_getattr_np.c
patch
|
blob
|
history
diff --git
a/nptl/pthread_getattr_np.c
b/nptl/pthread_getattr_np.c
index
9c0e4ed
..
87cf564
100644
(file)
--- a/
nptl/pthread_getattr_np.c
+++ b/
nptl/pthread_getattr_np.c
@@
-164,8
+164,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;
+ }
}
}