[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fd leak with {fd}>
From: |
Sam Liddicott |
Subject: |
fd leak with {fd}> |
Date: |
Fri, 16 Nov 2012 15:47:03 +0000 |
Repeated executions of: { echo $fd ; } {fd}> /dev/null
will emit different numbers, indicating that fd is not closed when the
block completes.
As an interesting aside it seems not to be possible to close the FD within
the block either:
{ echo $fd ; eval exec "$fd>&-" ; } {fd}> /dev/null
- fd leak with {fd}>,
Sam Liddicott <=
- Re: fd leak with {fd}>, Chet Ramey, 2012/11/22
- Re: fd leak with {fd}>, Sam Liddicott, 2012/11/22
- Re: fd leak with {fd}>, Pierre Gaston, 2012/11/23
- Re: fd leak with {fd}>, Chet Ramey, 2012/11/26
- Re: fd leak with {fd}>, Pierre Gaston, 2012/11/26
- Re: fd leak with {fd}>, Pierre Gaston, 2012/11/26
- Re: fd leak with {fd}>, Sam Liddicott, 2012/11/26
- Re: fd leak with {fd}>, Chet Ramey, 2012/11/26
- Re: fd leak with {fd}>, Sam Liddicott, 2012/11/26