More are hint than a direct answer, are you using the "do" syntax for
opening the files?
open("somefile", "w") do file
write(file, ...);
read(file, ....);
end
Regardless of how you exit that block, regularly or via exceptions, the
file will be closed, so at least there are no files accidentally left open.
To really list the open files of your process this should help:
http://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/
Am Donnerstag, 12. März 2015 12:00:22 UTC+1 schrieb Daniel Carrera:
>
> Hello,
>
> My program is dying with the error message:
>
> ERROR: opening file <...file name...>: Too many open files
> in open at ./iostream.jl:117
> in open at ./iostream.jl:125
> ...
>
> I have reviewed my program and as far as I can tell, everywhere that I
> open a file I close it immediately. I need to query more information to
> debug this. Is there a way that I can get information about the files that
> are currently open? Or at least the *number* of open files? With that I
> could at least sprinkle my program with "print open files" statements and
> trace the bug.
>
>
> Cheers,
> Daniel.
>
>
>
>
>