On Thursday, 12 March 2015 12:07:36 UTC+1, René Donner wrote:
>
> 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
>

No, I'm using "close(file)" or "open(readlines, ...)" when I just need to 
read the lines. I'll replace the "close(file)" with the do-form.


> To really list the open files of your process this should help: 
> http://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/
>

Thanks! 

With that I was able to debug the problem in a snap. It turns out that one 
of my functions had "readlines(open(...))" instead of 
"open(readlines,...)". The critical difference is that the former leaves a 
file pointer dangling.

Cheers,
Daniel.
 

Reply via email to