Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] file descriptor leaks?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-05-04 (09:31)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] file descriptor leaks?
On Tue, May 04, 2004 at 11:15:44AM +0200, Henri DF wrote:
> <quote>Calls to read_file open the file but don't close it. Because OCaml 
> uses a 
> full garbage collector chan isn't collected until some (unknown, 
> asynchronous) time later when the minor heap becomes full. This means that 
> open file descriptors build up waiting to be collected in one go. If files 
> is a long list, then this code is likely to fail when the OS limit on the 
> number of open files is reached.
> </quote>

Yes, I think this part of the tutorial is wrong.


Richard Jones.
Merjis Ltd. - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants.  -- from Usenet

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: