in reply to Closing all filehandles associate with an fd
There's no simple way to close all files. You can try:
Also exec(3) will close most of the fdsuse POSIX; POSIX::close($_) for (0..1024);
Update: also read how to close all files
Also this should be POSIX::close
|
|---|