ְAlso, you might cause other software that inherits the fds to fail/complain/whatever. I only mention this because just yesterday I noticed that when running 'lvs' on my Debian wheeze laptop, I get: File descriptor 3 (/usr/share/bash-completion/completions) leaked on lvs invocation. Parent PID 11833: -su File descriptor 4 (/usr/share/bash-completion/completions) leaked on lvs invocation. Parent PID 11833: -su File descriptor 5 (/usr/share/bash-completion/completions) leaked on lvs invocation. Parent PID 11833: -su and when I searched I found: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=432986 FYI -- Didi
2013/6/4 Geoffrey S. Mendelson <[email protected]> > > On 06/04/2013 02:43 PM, ronys wrote: >> >> Nothing. You're just wasting resources (file descriptors) and making >> your code a bit harder to understand and maintain. >> > > It kind of says to anyone reading the code that you put the minimum into > creating it you could, and implies there are details that were not addressed. > > Of course I'm an old assembly language programmer, where everything is > declared, nothing is left to default, and anything allocated or opened is > explicitly freed or closed when you are done with it. > > Geoff. > > > -- > Geoffrey S. Mendelson, N3OWJ/4X1GM/KBUH7245/KBUW5379 > It's Spring here in Jerusalem!!! > > > _______________________________________________ > Linux-il mailing list > [email protected] > http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il _______________________________________________ Linux-il mailing list [email protected] http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
