On Thu, Jul 1, 2010 at 11:51 PM, Pascal J. Bourguignon <span dir="ltr"><<a href="mailto:pjb@informatimago.com">pjb@informatimago.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div>But I guess this concerns only MS-Windows, and not unix systems, where<br></div>
we could have a simplier algorithm. Or does this depend on the file<br>
system?<br></blockquote><div><br>No, this also has to done in Unix systems, because of dlopen() which functions strictly based on filenames. In other words, if file foo.fas is loaded it will refuse to load it a second time. Depending on the operating system it may also refuse to load symlinks. And in some Unices I have found that loaded files also can not be deleted. Unfortunately POSIX does not specify any of this and thus the current system seems to be the only foolproof one.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Now that I think about it, perhaps I did something wrong. I noticed a<br>
lot of ecl "temporary" files in /tmp, and I removed them wholesale.<br>
Perhaps I should wait to quit all ECL processes before cleaning up<br>
/tmp?<br></blockquote></div><br>Ideally, this should not be a problem. ECL uses mkstemp to determine temporary file names and the operating system is guaranteed to provide unique names in a way that multiple processes can coexist.<br>
<br>Juanjo<br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br><a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>