Merge pull request #112 from xuzixx/master

Issue 111: TestReSeekInotify failed
diff --git a/watch/inotify.go b/watch/inotify.go
index 4f6c031..0e5d491 100644
--- a/watch/inotify.go
+++ b/watch/inotify.go
@@ -96,15 +96,6 @@
 			}
 
 			switch {
-			//With an open fd, unlink(fd) - inotify returns IN_ATTRIB (==fsnotify.Chmod)
-			case evt.Op&fsnotify.Chmod == fsnotify.Chmod:
-				if _, err := os.Stat(fw.Filename); err != nil {
-					if ! os.IsNotExist(err) {
-						return
-					}
-				}
-				fallthrough
-
 			case evt.Op&fsnotify.Remove == fsnotify.Remove:
 				fallthrough
 
@@ -113,6 +104,10 @@
 				changes.NotifyDeleted()
 				return
 
+			//With an open fd, unlink(fd) - inotify returns IN_ATTRIB (==fsnotify.Chmod)
+			case evt.Op&fsnotify.Chmod == fsnotify.Chmod:
+				fallthrough
+
 			case evt.Op&fsnotify.Write == fsnotify.Write:
 				fi, err := os.Stat(fw.Filename)
 				if err != nil {