From owner-svn-src-all@FreeBSD.ORG Sat Feb 21 12:56:23 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 500E81065673; Sat, 21 Feb 2009 12:56:23 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from dhcp-172-28-77-108.eur.corp.google.com (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D5B8D8FC23; Sat, 21 Feb 2009 12:56:20 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <499FF9F2.3030408@FreeBSD.org> Date: Sat, 21 Feb 2009 12:56:18 +0000 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 To: John Baldwin References: <200902171957.n1HJvqk8026145@svn.freebsd.org> <499BC43B.6030701@incunabulum.net> <200902180949.32691.jhb@freebsd.org> In-Reply-To: <200902180949.32691.jhb@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: svn-src-stable-7@freebsd.org, svn-src-stable@freebsd.org, svn-src-all@freebsd.org, Bruce Simpson , src-committers@freebsd.org Subject: Re: svn commit: r188727 - in stable/7: sys sys/contrib/pf sys/dev/ath/ath_hal sys/dev/cxgb sys/kern sys/modules/sem sys/sys tools/regression/posixsem usr.bin/procstat X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 12:56:24 -0000 John Baldwin wrote: > On Wednesday 18 February 2009 3:18:03 am Bruce Simpson wrote: >> John Baldwin wrote: >>> Author: jhb >>> Date: Tue Feb 17 19:57:52 2009 >>> New Revision: 188727 >>> URL: http://svn.freebsd.org/changeset/base/188727 >>> >>> Log: >>> MFC: Rework the lifetime management of the kernel implementation of > POSIX >>> semaphores. Specifically, semaphores are now represented as new file >>> descriptor type that is set to close on exec. This removes the need for >>> all of the manual process reference counting (and fork, exec, and exit >>> event handlers) as the normal file descriptor operations handle all of >>> that for us nicely. It is also suggested as one possible implementation >>> in the spec and at least one other OS (OS X) uses this approach. >> FYI: >> This change *may* fix Python 2.6's 'multiprocessing' module on FreeBSD >> 7-STABLE, which is known to have problems there; it depends on POSIX >> semaphores to synchronize its IPC between different fork()'s of the >> Python interpreter. >> >> If anyone else has an interest in ths they may wish to test, if not, I >> will try to get around to it eventually. > > When Kris tested it, it made things significantly better. I'm not sure if it > resolved all the issues though. > Some of the self-tests still failed, but there was confusion about whether the tests were broken or the kernel. Kris