On Fri, Jan 08, 2016 at 12:52:16PM +0700, Robert Elz wrote: > Date: Fri, 8 Jan 2016 11:22:28 +0800 (PHT) > From: Paul Goyette <p...@vps1.whooppee.com> > Message-ID: <pine.neb.4.64.1601081115270.22...@vps1.whooppee.com> > > | Is there a "supported" interface for detaching the file (or descriptor) > | from the process without closing it? > > Actually, thinking through this more, why not just "fix" filemon to make > a proper reference to the file, instead of the half baked thing it is > currently doing.
Yes, please! :-) Furthermore, stick the file into LWP 0's descriptor table so that you can see it with fstat. It's a little more code to write---I wrote it for gre(4)---but it's well worth the visibility. Dave -- David Young dyo...@pobox.com Urbana, IL (217) 721-9981