[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] [PATCH] Inotify support for Maildirs. (FIRST DRAFT)



Quoting Alvaro Herrera <alvherre@alvh.no-ip.org>:

Excerpts from Alvaro Herrera's message of lun sep 03 13:02:26 -0300 2012:
Excerpts from Edward Z. Yang's message of lun sep 03 02:00:59 -0300 2012:
> The locking is a downright crime (where's the STM when you need it),
> and it's still racy, but it should work OK.

Hm.  I tried this but ran into trouble: I currently run branch "next",
and your patch doesn't apply there; so I tried your ~ezyang fork and
branch maildir-sync there, but I find that when in that branch (with or
without this patch), Sup seems to eat 100% of a CPU core doing
clock_gettime() and select() continuously.  Not sure what's happening.
I assume you don't see that behavior.

Oh, I see what's going on: it's deleting all my deleted email!  :-)
Nevermind.  I'll just wait for it to finish before trying out your patch.

There is a bug in the patch, where it notices changes that Sup makes from
inotify, and as a result undoes any flag changes you make. So there needs to be
a fix here but I'm not sure what it is yet.

Edward
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel