From owner-cvs-src-old@FreeBSD.ORG Sat Nov 29 21:46:40 2008 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BA6F10657A8 for ; Sat, 29 Nov 2008 21:46:40 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 90ACF8FC12 for ; Sat, 29 Nov 2008 21:46:40 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id mATLkelS011241 for ; Sat, 29 Nov 2008 21:46:40 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id mATLke2N011240 for cvs-src-old@freebsd.org; Sat, 29 Nov 2008 21:46:40 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <200811292146.mATLke2N011240@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Sat, 29 Nov 2008 21:46:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libthr/thread thr_fork.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2008 21:46:40 -0000 kib 2008-11-29 21:46:28 UTC FreeBSD src repository Modified files: lib/libthr/thread thr_fork.c Log: SVN rev 185456 on 2008-11-29 21:46:28Z by kib Unlock the malloc() locks in the child process after fork(). This gives us working malloc in the fork child of the multithreaded process. Although POSIX requires that only async-signal safe functions shall be operable after fork in multithreaded process, not having malloc lower the quality of our implementation. Tested by: rink Discussed with: kan, davidxu Reviewed by: kan MFC after: 1 month Revision Changes Path 1.10 +1 -0 src/lib/libthr/thread/thr_fork.c