Yes!
Proposed patch (needs tests):
=== modified file 'ubuntuone/platform/linux/filesystem_notifications.py'
--- ubuntuone/platform/linux/filesystem_notifications.py 2011-10-18
13:51:26 +0000
+++ ubuntuone/platform/linux/filesystem_notifications.py 2011-12-19
11:23:11 +0000
@@ -405,6 +405,7 @@
def _hook_inotify_to_twisted(self, wm, notifier):
"""This will hook inotify to twisted."""
+ _logger = self.log
class MyReader(abstract.FileDescriptor):
"""Chain between inotify and twisted."""
@@ -418,7 +419,10 @@
def doRead(self):
"""Called when twisted says there's something to read."""
notifier.read_events()
- notifier.process_events()
+ try:
+ notifier.process_events()
+ except Exception, e:
+ _logger.exception("Error while processing events: %r", e)
reader = MyReader()
reactor.addReader(reader)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/872894
Title:
Unhandled INotify events break syncdaemon file watching
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntuone-client/+bug/872894/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs