[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] POSIX threading library branch, master, updated. c435d75fb51989c2f
From: |
Samuel Thibault |
Subject: |
[SCM] POSIX threading library branch, master, updated. c435d75fb51989c2fa80c179600d19222d03c12d |
Date: |
Sun, 06 Nov 2011 12:18:33 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "POSIX threading library".
The branch, master has been updated
via c435d75fb51989c2fa80c179600d19222d03c12d (commit)
via 56e25a91e9e25eba8da099efa89c3c487c3490cf (commit)
from d28b1ddd3d55d6aad75bccbe9211645dffa9e105 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c435d75fb51989c2fa80c179600d19222d03c12d
Merge: 56e25a9 d28b1dd
Author: Samuel Thibault <address@hidden>
Date: Sun Nov 6 13:17:28 2011 +0100
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/libpthread
commit 56e25a91e9e25eba8da099efa89c3c487c3490cf
Author: Pino Toscano <address@hidden>
Date: Sun Nov 6 12:39:04 2011 +0100
pthread_getspecific, pthread_setspecific: check the key validity
When getting a TSD, handle gracefully the case of an invalid key.
When setting a TSD, check for the validity of the key as recommended
(although not required) by POSIX. This also avoids potentially
filling the `thread_specifics' hash of threads with TSD of invalid
keys.
Add two simple checks in test-7.c for the two situations above.
* sysdeps/hurd/pt-getspecific.c (pthread_getspecific): Check the
validity of the specified key.
* sysdeps/hurd/pt-setspecific.c (pthread_setspecific): Likewise.
* tests/test-7.c (main): Add two assertions.
-----------------------------------------------------------------------
Summary of changes:
sysdeps/hurd/pt-getspecific.c | 4 +++-
sysdeps/hurd/pt-setspecific.c | 4 ++++
tests/test-7.c | 3 +++
3 files changed, 10 insertions(+), 1 deletions(-)
hooks/post-receive
--
POSIX threading library
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] POSIX threading library branch, master, updated. c435d75fb51989c2fa80c179600d19222d03c12d,
Samuel Thibault <=