[lxc-devel] the lxc.tty option leaks file descriptors

Daniel Lezcano daniel.lezcano at free.fr
Thu Apr 9 07:04:12 UTC 2009


Môshe van der Sterre wrote:
> Hello again,
>
> I noticed extra open file descriptors in the container when using lxc.tty.
> This patch seems to fix it, is this the correct approach?
>   

Thanks for catching this.
I think it is better to set the close on exec flag on the master and the 
slave in lxc_create_tty.
> Greetings,
> Môshe van der Sterre
>
> P.S. I'm trying to build a product based on LXC,
>   
What kind of product is it ?

> I hope you don't mind me submitting random patches. :-)
No until they are useful like the ones you sent :)

Thanks
 -- Daniel




More information about the lxc-devel mailing list