Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Feb 1998 00:31:51 +0000 (GMT)
From:      Terry Lambert <tlambert@primenet.com>
To:        eivind@yes.no (Eivind Eklund)
Cc:        tlambert@primenet.com, mike@smith.net.au, gram@cdsec.com, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Shared memory and signals
Message-ID:  <199802060031.RAA16316@usr02.primenet.com>
In-Reply-To: <19980206012232.55341@follo.net> from "Eivind Eklund" at Feb 6, 98 01:22:32 am

next in thread | previous in thread | raw e-mail | index | archive | help
> > 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802060031.RAA16316>