cvs commit: src/lib/libc/include nss_tls.h src/lib/libc/net
nsdispatch.c nss_compat.c
Jacques Vidrine
nectar at FreeBSD.org
Tue Mar 30 07:56:17 PST 2004
nectar 2004/03/30 07:56:15 PST
FreeBSD src repository
Modified files:
lib/libc/include nss_tls.h
lib/libc/net nsdispatch.c nss_compat.c
Log:
When a dynamic NSS module is built and linked against a thread
library, it may pull in that thread library at run time. If the
process started out single-threaded, this could cause attempts to
release locks that do not exist. Guard against this possibility by
checking __isthreaded before invoking thread primitives.
A similar problem remains if the process is linked against one thread
library, but the NSS module is linked against another. This can only
be avoided by careful design of the NSS module.
Submitted by: Sean McNeil <sean at mcneil.com> (mostly; bugs are mine)
Revision Changes Path
1.3 +1 -1 src/lib/libc/include/nss_tls.h
1.11 +39 -20 src/lib/libc/net/nsdispatch.c
1.3 +3 -2 src/lib/libc/net/nss_compat.c
More information about the cvs-src
mailing list