]> go.fuhry.dev Git - fsnotify.git/commitdiff
Update readme to specify BSD / OSX limits.
authorChris Howey <chris@howey.me>
Sun, 13 Oct 2013 16:51:11 +0000 (11:51 -0500)
committerChris Howey <chris@howey.me>
Sun, 13 Oct 2013 16:51:11 +0000 (11:51 -0500)
README.md

index a4a4fac9af400d07b856987e4397e6446444e748..bf686aa647cb4ec2c39ee0ec1a8119eba058bfaa 100644 (file)
--- a/README.md
+++ b/README.md
@@ -66,5 +66,8 @@ Notes:
     * No, you must add watches for any directory you want to watch.
 * Do I have to watch the Error and Event channels in a separate goroutine?
     * As of now, yes. Looking into making this single-thread friendly.
-* How avoid the criptic error "no space left on device" when adding watches?
-    * Probably you're out of inotify's watches; verify your max with "cat /proc/sys/fs/inotify/max\_user\_watches".
+* There are OS-specific limits as to how many watches can be created:
+    * Linux: /proc/sys/fs/inotify/max_user_watches contains the limit,
+    reaching this limit results in a "no space left on device" error.
+    * BSD / OSX: sysctl variables "kern.maxfiles" and "kern.maxfilesperproc",
+    reaching these limits results in a "too many open files" error.