Skip to content

Commit

Permalink
Adds reference to the related issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Losev committed Mar 3, 2018
1 parent e70ff3d commit 93e90c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,9 @@ func (e *Event) ignoreLinux(mask uint32) bool {
// event was sent after the DELETE. This ignores that MODIFY and
// assumes a DELETE will come or has come if the file doesn't exist.
// A CHMOD event (triggeded by IN_MODIFY) can arrive when an open file is
// deleted. In that case the DELETE event is defered until all open
// handles for the file are closed.
// deleted. In that case the DELETE event is deferred until all open
// handles for the file are closed. See
// https://github.com/fsnotify/fsnotify/issues/194 for more information.
if e.Op&Create == Create || e.Op&Write == Write {
_, statErr := os.Lstat(e.Name)
return os.IsNotExist(statErr)
Expand Down

0 comments on commit 93e90c8

Please sign in to comment.