summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/Makefile.inc
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2003-11-04 20:04:45 +0000
committerdeischen <deischen@FreeBSD.org>2003-11-04 20:04:45 +0000
commit1191fa7e324052c4d97e45f85cbb566eb985c1c6 (patch)
treec66d125bd34129e0d434c2444369c5dd31c55ad0 /lib/libpthread/thread/Makefile.inc
parent573b8090444db7cfee8d60b937cc6d39632c8bbc (diff)
downloadFreeBSD-src-1191fa7e324052c4d97e45f85cbb566eb985c1c6.zip
FreeBSD-src-1191fa7e324052c4d97e45f85cbb566eb985c1c6.tar.gz
Add an implementation for pthread_atfork().
Aside from the POSIX requirements for pthread_atfork(), when fork()ing, take the malloc lock to keep malloc state consistent in the child. Reviewed by: davidxu
Diffstat (limited to 'lib/libpthread/thread/Makefile.inc')
-rw-r--r--lib/libpthread/thread/Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libpthread/thread/Makefile.inc b/lib/libpthread/thread/Makefile.inc
index 52c342c..d29da77 100644
--- a/lib/libpthread/thread/Makefile.inc
+++ b/lib/libpthread/thread/Makefile.inc
@@ -5,7 +5,7 @@
SRCS+= \
thr_aio_suspend.c \
- thr_autoinit.c \
+ thr_atfork.c \
thr_attr_destroy.c \
thr_attr_init.c \
thr_attr_get_np.c \
@@ -28,6 +28,7 @@ SRCS+= \
thr_attr_setstack.c \
thr_attr_setstackaddr.c \
thr_attr_setstacksize.c \
+ thr_autoinit.c \
thr_barrier.c \
thr_barrierattr.c \
thr_cancel.c \
OpenPOWER on IntegriCloud