File closing annoyances
John M McIntosh
johnmci at smalltalkconsulting.com
Thu Jan 2 00:52:44 UTC 2003
I think some VM's don't honor the flush, so the only way to flush
to close the file. Mm the mac VM didn't flush until VM version v3.06
If all VM folks agree the file is actually flushed using some
OS level flush routine, then I'd guess you could keep the file open?
On Wednesday, January 1, 2003, at 03:27 PM, Tim Rowledge wrote:
> "David T. Lewis" <lewis at mail.msen.com> is claimed by the authorities
> to have written:
>> I suspect that there are any number of platforms on which it would be
>> a bad idea to have the changes file open at the same time the VM
>> decides to crash. I feel a bit safer overall having the changes file
>> in a normally-closed condition.
> Oh, but it _isn't_ normally closed; the code flushes the filestream and
> then closes it and then opens it again!
> Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
> Strange OpCodes: RDRI: Rotate Disk Right Immediate
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
More information about the Squeak-dev