[squeak-dev] Inbox/Files-monty.172

tim Rowledge tim at rowledge.org
Mon Aug 28 23:36:10 UTC 2017


> On 28-08-2017, at 11:47 AM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> Main request was to avoid case of race condition that can happen when separating the action (like opening a file) from the query in case of failure (like was file unwritable?), because another concurrent program might have changed the file system status in between (think of concurrent squeak images creating concurrent /tmp/foobar.baz for example).

Oh, *that* problem. I hate that. It’s such a stupid bit of (mis)design. I think I’ve been complaining about that for around 30 years…

> 
> I have already integrated the necessary VM changes, but it remains to integrate image side changes.
> Last time I checked there were unecessary changes mixed that I'd preferred to see discussed here, and the fallback code might not work in older VM, then I came short of spare time...
> But in any cases, there are too many .mcz roting in inbox, so I'm glad another pair of eyes analyze the changes.

It’s all very well Torvalds declaring that all bugs are shallow with enough pairs of eyes, *if* you have enough pairs of eyes. We need more.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Strange OpCodes: RSC: Rewind System Clock




More information about the Squeak-dev mailing list