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

From: John Levon (moz@compsoc.man.ac.uk)
Date: Wed Oct 18 2000 - 12:43:39 EST


On Wed, 18 Oct 2000, Alessandro Rubini wrote:

> + /* init_module has stdin/stdout/stderr open: close them (ARub) */
> + for (i=255; i>=0; i--)
> + if (current->files->fd[i])
> + close(i);
>

shouldn't this be exit_files() ?

see md.c for an example usage ...

thanks
john

-- 
"Mathemeticians stand on each other's shoulders while computer scientists
 stand on each other's toes."
	- Richard Hamming

- 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