summaryrefslogtreecommitdiffstats
path: root/libgo/go/os/inotify/inotify_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/os/inotify/inotify_linux.go')
-rw-r--r--libgo/go/os/inotify/inotify_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/os/inotify/inotify_linux.go b/libgo/go/os/inotify/inotify_linux.go
index 99fa5162223..ee3c75f63b1 100644
--- a/libgo/go/os/inotify/inotify_linux.go
+++ b/libgo/go/os/inotify/inotify_linux.go
@@ -131,7 +131,7 @@ func (w *Watcher) RemoveWatch(path string) os.Error {
if success == -1 {
return os.NewSyscallError("inotify_rm_watch", errno)
}
- w.watches[path] = nil, false
+ delete(w.watches, path)
return nil
}
OpenPOWER on IntegriCloud