[Top][All Lists]

[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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]