From owner-cvs-src@FreeBSD.ORG Tue Nov 4 12:04:46 2003 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B3CA16A4CE; Tue, 4 Nov 2003 12:04:46 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95F3543FA3; Tue, 4 Nov 2003 12:04:45 -0800 (PST) (envelope-from deischen@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id hA4K4jXJ060165; Tue, 4 Nov 2003 12:04:45 -0800 (PST) (envelope-from deischen@repoman.freebsd.org) Received: (from deischen@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id hA4K4jnQ060164; Tue, 4 Nov 2003 12:04:45 -0800 (PST) (envelope-from deischen) Message-Id: <200311042004.hA4K4jnQ060164@repoman.freebsd.org> From: Daniel Eischen Date: Tue, 4 Nov 2003 12:04:45 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libpthread pthread.mapsrc/lib/libpthread/thread Makefile.inc thr_fork.c thr_init.c thr_kern.c thr_private.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2003 20:04:46 -0000 deischen 2003/11/04 12:04:45 PST FreeBSD src repository Modified files: lib/libpthread pthread.map lib/libpthread/thread Makefile.inc thr_fork.c thr_init.c thr_kern.c thr_private.h Log: 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 Revision Changes Path 1.7 +2 -0 src/lib/libpthread/pthread.map 1.45 +2 -1 src/lib/libpthread/thread/Makefile.inc 1.33 +39 -4 src/lib/libpthread/thread/thr_fork.c 1.61 +2 -0 src/lib/libpthread/thread/thr_init.c 1.101 +15 -1 src/lib/libpthread/thread/thr_kern.c 1.105 +13 -0 src/lib/libpthread/thread/thr_private.h