Re: [patch] khttpd doesn't detach from the files of its parent

From: Alexander Viro (viro@math.psu.edu)
Date: Wed Oct 18 2000 - 13:17:30 EST


On Wed, 18 Oct 2000, Jeff Garzik wrote:

> Alexander Viro wrote:
> > On Wed, 18 Oct 2000, Alessandro Rubini wrote:
> > > > shouldn't this be exit_files() ?
>
> > > Yes, definitely.
> > > Arjan already replied (privately) to say the same.
>
> > It should, unless you want to open any files in the thread itself.
>
> If you start a kernel thread which opens files -before- calling
> exit_files(), aren't the files opened associated with the wrong process?
>
> When I was playing around with kernel threads that have their own VM
> mappings, I had to do exit_mm() then create_mm(), or something along
> those lines.

See the patch in another posting.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:13 EST