tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: In-kernel process exit hooks?



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 <paul%vps1.whooppee.com@localhost>
>     Message-ID:  <Pine.NEB.4.64.1601081115270.22533%vps1.whooppee.com@localhost>
> 
>   | 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
dyoung%pobox.com@localhost    Urbana, IL    (217) 721-9981


Home | Main Index | Thread Index | Old Index