On Fri, Sep 08, 2000 at 02:56:10PM +0100, John Toon wrote:
> 
> However, it seems strange that you're getting non-attached memory
> segments. Surely it is the job of the kernel to clean up after processes
> (if they're badly programmed and don't do it themselves)? Perhaps one
> program is leaking? 

SysV shared memory segments are defined to stick around until some
appropriately-privileged user process deletes them.

I was thinking recently that it might be nice to extend that API so a
process creating such a segment could ask the kernel to reference-count
it and delete it if the refcount goes to zero, but any app that wants
that behavior can just use mmap() anyway, which has the advantage of
being portable.
 
-- 
 Ben

220 go.ahead.make.my.day ESMTP Postfix


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to