freebsd-dev/lib
Brian Somers 225721f00b Modify the code path of the ifdef NOTYET part of _kse_single_thread():
o  Don't reinitialise the atfork() handler list in the child.  We
   are meant to call the child handler, and on subsequent fork()s
   should call all three functions as normal.
o  Don't reinitialise the thread specific keyed data in the
   child after a fork.  Applications may require this for context.
o  Reinitialise curthread->tlflags after removing ourselves from
   (and reinitialising) the various internal thread lists.
o  Reinitialise __malloc_lock in the child after fork() (to balance
   our explicitly taking the lock prior to the fork()).

With these changes, it is possible to enable the NOTYET code in
thr_kern.c to allow the use of non-async-safe functions after
fork()ing from a threaded program.

Reviewed by:	Daniel Eischen <deischen@freebsd.org>
[_malloc_lock reinitialisation has since been moved to avoid polluting the
!NOTYET code]
2005-09-24 01:19:53 +00:00
..
bind
csu
libalias
libarchive In archive_read_open(), do not set the internal archive state to 2005-09-21 04:48:52 +00:00
libatm
libautofs
libbegemot
libbluetooth
libbsnmp
libbz2
libc Just by allocating size*2 bytes we can't be sure that new size will be enough, 2005-09-18 17:50:58 +00:00
libc_r - Prefix MUTEX_TYPE_MAX with PTHREAD_ to avoid namespace pollution. 2005-08-19 21:31:42 +00:00
libcalendar
libcam
libcom_err
libcompat
libcrypt
libdevinfo Add __BEGIN_DECLS/__END_DECLS so that this header can be included in C++ 2005-08-31 14:57:39 +00:00
libdevstat Remove a reference to compute_stats(), since it is no longer documented at 2005-08-10 00:51:36 +00:00
libdisk
libedit Move <sys/cdefs.h> up to reduce diff to NetBSD. 2005-08-10 13:41:31 +00:00
libexpat
libfetch Ignore HTTP_PROXY if it is defined but empty. This was already handled 2005-08-24 12:28:05 +00:00
libform
libftpio
libgeom
libgpib
libio
libipsec
libipx
libkiconv - Fix checking range of strings of struct iconv_add_in in libsmb and libkiconv, 2005-08-24 12:38:26 +00:00
libkse Modify the code path of the ifdef NOTYET part of _kse_single_thread(): 2005-09-24 01:19:53 +00:00
libkvm
libmagic
libmd Correct type. 2005-09-14 10:42:51 +00:00
libmemstat The "Mbuf" zone was renamed "mbuf" to improve consistency, but the code 2005-08-15 10:24:20 +00:00
libmenu
libmilter
libmp
libncp
libncurses
libnetgraph
libngatm
libopie
libpam Do not use passphraseless keys for authentication unless the nullok 2005-09-22 05:35:24 +00:00
libpanel
libpcap
libpmc
libpthread Modify the code path of the ifdef NOTYET part of _kse_single_thread(): 2005-09-24 01:19:53 +00:00
libradius
librpcsvc
libsbuf
libsdp
libsm
libsmb
libsmdb
libsmutil
libstand
libtacplus
libtelnet
libthr Include needed headers that were obtained through <pthread.h>. Sort headers 2005-09-01 15:21:23 +00:00
libthread_db
libufs Remove getino(3) manpage. It doesn't document what is here, what is here should 2005-08-31 08:36:05 +00:00
libugidfw
libusbhid
libutil Pidfiles should be created with permission preventing users from opening 2005-09-16 11:24:28 +00:00
libvgl
libwrap
liby
libypclnt
libz
msun Fixed aliasing bugs in TRUNC() by using the fdlibm macros for access 2005-09-19 11:28:19 +00:00
ncurses
Makefile Connect smbfs build on powerpc. 2005-09-19 08:13:43 +00:00
Makefile.inc