in reply to Close all open file descriptors
How about
use POSIX qw[ close ]; POSIX::close( $_ ) for 3 .. 1024; ## Arbitrary upper bound
This seems to work ok on win32 which isn't the most posix-complient beast in the world.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Close all open file descriptors
by Fletch (Bishop) on Jul 28, 2004 at 15:34 UTC | |
by BrowserUk (Patriarch) on Jul 28, 2004 at 15:38 UTC | |
by edan (Curate) on Jul 29, 2004 at 08:19 UTC | |
by ysth (Canon) on Jul 29, 2004 at 08:41 UTC | |
by edan (Curate) on Jul 29, 2004 at 08:53 UTC |