Clones.bjs
[gitlive] / Monitor.vala
index 5fc98a3..5b12963 100644 (file)
@@ -67,13 +67,13 @@ public delegate void onEventHander (FileMonitor fm, File f_orig, File of_orig, F
  * 
  * 
  */
-public abstract class MonitorAbstract : Object
+public abstract class gitMonitorBase : Object
 {
-       public abstract void monitor(string path, int depth =0);
-}
-
+       public abstract void monitor(string path, int depth = 0);
+} 
  
-public class Monitor : MonitorAbstract
+public class Monitor : gitMonitorBase
 {
 
 
@@ -166,7 +166,8 @@ public class Monitor : MonitorAbstract
                 this.monitors.append_val(fm);
 
             } catch (Error e) {
-                  GLib.debug("Error adding monitor: %s", e.message);
+                  GLib.debug("Error adding monitor: %s\n", e.message);
+                  GLib.debug("Try: \n\nsudo su\necho 512 > /proc/sys/fs/inotify/max_user_instances\n");     
                 // FIXME -- show error? do nothing..            
             }
             // print("ADD path " + depth + ' ' + path);