From owner-freebsd-stable@FreeBSD.ORG Mon Jun 1 21:17:50 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A278B106566C for ; Mon, 1 Jun 2009 21:17:50 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.freebsd.org (Postfix) with ESMTP id 756B78FC08 for ; Mon, 1 Jun 2009 21:17:50 +0000 (UTC) (envelope-from bms@FreeBSD.org) Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id DC11C34C7DB; Mon, 1 Jun 2009 17:17:49 -0400 (EDT) Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 01 Jun 2009 17:17:49 -0400 X-Sasl-enc: z0o0Y09Zkqpa9XSF8xamDa2BhOeuP7fZkvAprii1PTOV 1243891069 Received: from empiric.lon.incunabulum.net (82-35-112-254.cable.ubr07.dals.blueyonder.co.uk [82.35.112.254]) by mail.messagingengine.com (Postfix) with ESMTPSA id 49DCE46056; Mon, 1 Jun 2009 17:17:49 -0400 (EDT) Message-ID: <4A24457C.6060100@FreeBSD.org> Date: Mon, 01 Jun 2009 22:17:48 +0100 From: Bruce Simpson User-Agent: Thunderbird 2.0.0.21 (X11/20090412) MIME-Version: 1.0 To: Jilles Tjoelker References: <20090601161903.GA40377@stack.nl> In-Reply-To: <20090601161903.GA40377@stack.nl> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Vlad Galu , freebsd-stable@freebsd.org Subject: Re: Unnamed POSIX shared semaphores X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2009 21:17:51 -0000 Jilles Tjoelker wrote: > If process-shared semaphores really work, then the above structure is > not a pathological case. Effectively, sem_t is carved in stone. So > process-private semaphores should continue to have most of their stuff > in a separately allocated structure, to preserve flexibility. > There was an inadvertent race in FreeBSD's POSIX semaphores which I fixed in HEAD and STABLE about 6 weeks before 7.2 was released. I believe process-shared POSIX semaphores now work -- the Python 'multiprocessing' regression test now runs to completion with no errors on both HEAD and STABLE. cheers, BMS