On 29/09/14 15:41, Vallevand, Mark K wrote:

> Our program is designed to close all open file descriptors in the child
> process before calling lxc_start().  That code can try to close all file
> descriptors to make sure something doesn’t sneak through.  However,
> closing the file descriptors associated with valgrind does not work.  I
> get errno=0 Bad File Descriptor.  Valgrind really has them held open.  I
> am running as root in all these tests.

Yes, we refuse to let them be closed because that would, for example, 
break logging as it would close our log stream.

We do however also lie when asked with getrlimit how many file 
descriptors there are, so lxc is obviously just guessing some high upper 
limit rather than actually asking what the limit is.

Tom

-- 
Tom Hughes (t...@compton.nu)
http://compton.nu/

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to