]> go.fuhry.dev Git - fsnotify.git/commit
Linux - use select to see if any watch data
authorChris Howey <chris@howey.me>
Fri, 7 Jun 2013 00:39:28 +0000 (19:39 -0500)
committerChris Howey <chris@howey.me>
Fri, 7 Jun 2013 00:39:28 +0000 (19:39 -0500)
commit3bfa915bde2415222d8dc048945f701353508160
tree25725de6c5745a3c2a6a92432430e66dcc7b46e5
parentd66819e17205a446430d34a9ba41625cec35be19
Linux - use select to see if any watch data

With this fix, we can check if Close() has been called on the
Watcher after every select. Before the Read would block indefinately,
possibly hanging forever (user calling watch.Close() when no events
available).
fsnotify_linux.go