Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Dec 1996 10:27:55 +1030 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        james@wgold.demon.co.uk (James Mansion)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: mmap pain
Message-ID:  <199612182357.KAA01883@genesis.atrad.adelaide.edu.au>
In-Reply-To: <32B7E11E.22@wgold.demon.co.uk> from James Mansion at "Dec 18, 96 12:18:38 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
James Mansion stands accused of saying:
> 
> Is there any (preferably generic) way to tell whether a file
> has no (other) open descriptors attached to it and can be unlinked?

Um, if you unlink it and someone else has it open, that's not going to
hurt them; it'll disappear from the filesystem namespace (as intended),
but will still exist until they close it or exit.

It's actually quite common to mmap a file for parent/child communication,
unlink it and then fork.

> James

-- 
]] Mike Smith, Software Engineer        msmith@gsoft.com.au             [[
]] Genesis Software                     genesis@gsoft.com.au            [[
]] High-speed data acquisition and      (GSM mobile)     0411-222-496   [[
]] realtime instrument control.         (ph)          +61-8-8267-3493   [[
]] Unix hardware collector.             "Where are your PEZ?" The Tick  [[



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