c/unix q
Yedidyah Bar David
linux-il at didi.bardavid.org
Tue Jun 4 16:53:36 IDT 2013
ְ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 <geoffreymendelson at gmail.com>
>
> 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
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
More information about the Linux-il
mailing list