Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Mar 2004 07:56:16 -0800 (PST)
From:      Jacques Vidrine <nectar@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/include nss_tls.h src/lib/libc/net nsdispatch.c nss_compat.c
Message-ID:  <200403301556.i2UFuGhL041410@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403301556.i2UFuGhL041410>