fam
[Top] [All Lists]

Re: [fam] Fam race condition

To: Paul Jackson <pj@xxxxxxxxxxxx>
Subject: Re: [fam] Fam race condition
From: Alex Larsson <alexl@xxxxxxxxxx>
Date: Wed, 3 Oct 2001 16:50:07 -0400 (EDT)
Cc: <rusty@xxxxxxx>, <fam@xxxxxxxxxxx>
In-reply-to: <Pine.SGI.4.21.0110031239140.268872-100000@xxxxxxxxxxxxxxxx>
Sender: owner-fam@xxxxxxxxxxx
On Wed, 3 Oct 2001, Paul Jackson wrote:

> On Wed, 3 Oct 2001, Alex Larsson wrote:
> > This happened for us in Nautilus. When saving a file fam sent an event for 
> > the truncate, leading to Nautilus updating it's data, showing a file size 
> > of zero. Then when the changes that wrote to the file arrived they weren't 
> > detected as changes by fam, because they were in the same second. This 
> > caused Nautilus to keep displaying 0 bytes for the file.
> 
> Too bad the event isn't sent at the end of the second, not when
> the first change is seen.  That is, the semantics of the event
> should be "1 or more changes seen in last second", not "1 or
> more changes will happen in the next second".

Unfortunately, that would delay reported changes up to one second. That is 
a user-visible amount of delay.

/ Alex



--
Source code, list archive, and docs: http://oss.sgi.com/projects/fam/
To unsubscribe: echo unsubscribe fam | mail majordomo@xxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>