From owner-freebsd-hackers Thu Feb 5 16:32:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA07570 for hackers-outgoing; Thu, 5 Feb 1998 16:32:13 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA07548 for ; Thu, 5 Feb 1998 16:32:10 -0800 (PST) (envelope-from tlambert@usr02.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id RAA14010; Thu, 5 Feb 1998 17:32:08 -0700 (MST) Received: from usr02.primenet.com(206.165.6.202) via SMTP by smtp02.primenet.com, id smtpd013864; Thu Feb 5 17:31:54 1998 Received: (from tlambert@localhost) by usr02.primenet.com (8.8.5/8.8.5) id RAA16316; Thu, 5 Feb 1998 17:31:51 -0700 (MST) From: Terry Lambert Message-Id: <199802060031.RAA16316@usr02.primenet.com> Subject: Re: Shared memory and signals To: eivind@yes.no (Eivind Eklund) Date: Fri, 6 Feb 1998 00:31:51 +0000 (GMT) Cc: tlambert@primenet.com, mike@smith.net.au, gram@cdsec.com, freebsd-hackers@FreeBSD.ORG In-Reply-To: <19980206012232.55341@follo.net> from "Eivind Eklund" at Feb 6, 98 01:22:32 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe hackers" > > If you use an mmap'ed file instead of a SysV SHM segment, then you > > will get resource-tracking cleanup after the last close, like you > > wanted. The file will stick around, but you can unlink it and use > > UNIX domain sockets to pass the descriptor between processes, if this > > is a problem. > > Any particular reason not to mmap() /dev/zero? I though that was considered > the way to do this, instead of unlinking. You have to pass sockets around instead of everyone just opening the same file... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.