From owner-freebsd-current Sat Nov 30 6:17:14 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6A4637B401 for ; Sat, 30 Nov 2002 06:17:13 -0800 (PST) Received: from mailhost.chi1.ameritech.net (mailhost1-chcgil.chcgil.ameritech.net [206.141.192.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id A458443E9C for ; Sat, 30 Nov 2002 06:17:12 -0800 (PST) (envelope-from dbsoft@technologist.com) Received: from bbs.dbsoft-consulting.com ([67.39.181.187]) by mailhost.chi1.ameritech.net (InterMail vM.4.01.02.17 201-229-119) with SMTP id <20021130141711.CIZH19077.mailhost.chi1.ameritech.net@bbs.dbsoft-consulting.com>; Sat, 30 Nov 2002 08:17:11 -0600 From: "Brian Smith" To: "Terry Lambert" Cc: "current@FreeBSD.ORG" Date: Sat, 30 Nov 2002 08:17:15 -0600 (CST) Reply-To: "Brian Smith" X-Mailer: PMMail 2.20.2380 for OS/2 Warp 4.5 In-Reply-To: <3DD9D4AE.41752FF8@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Subject: Re: Are SysV semaphores thread-safe on CURRENT? Message-Id: <20021130141711.CIZH19077.mailhost.chi1.ameritech.net@bbs.dbsoft-consulting.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 18 Nov 2002 22:05:34 -0800, Terry Lambert wrote: >Use mmap of a backing-store file, and then use file locking to >do record locking in the shared memory segment. Ok, I did this, and it actually works considerably better than the SysV shared memory. However flock() has the same problem as the SysV semaphores, where they block the entire process, allowing the same deadlock situation to occur. Has this flock() behavior changed in CURRENT? It seems like this behavior is much more likely to change than the SysV code. Thanks! Brian Smith To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message