freebsd-nq/lib/libkse
Daniel Eischen 396a73603d Set the tcb (thread control block) in the child process after a fork.
This protects against a race with an upcall in the parent during the
fork which can clobber the parent's tcb before the vm space is copied
in the child.  The child then gets a corrupted tcb that is either null
or that points to another thread that doesn't exist in the child (after
a fork, only the fork()ing thread exists in the child).

Reported by:	Arno J. Klaassen (arno at heho / snv / jussieu / fr)
2007-12-06 06:04:01 +00:00
..
arch For un-prototyped static inline functions declared in pthread_md.h on 2007-12-01 14:23:29 +00:00
support Eliminate plt relocation for kse_switchin. 2005-03-21 23:10:35 +00:00
sys WARNS=3'ify. 2007-11-30 17:20:29 +00:00
test Repo copy libpthreads to libkse. 2007-10-09 13:42:34 +00:00
thread Set the tcb (thread control block) in the child process after a fork. 2007-12-06 06:04:01 +00:00
kse.map Add _pthread_mutex_init_calloc_cb() to libthr and libkse, so that malloc(3) 2007-11-27 03:16:44 +00:00
Makefile WARNS=3'ify. 2007-11-30 17:20:29 +00:00