vendor/github.com/fsnotify/fsnotify/inotify_poller.go
changeset 260 445e01aede7e
parent 256 6d9efbef00a9
--- a/vendor/github.com/fsnotify/fsnotify/inotify_poller.go	Tue Aug 23 22:33:28 2022 +0200
+++ b/vendor/github.com/fsnotify/fsnotify/inotify_poller.go	Tue Aug 23 22:39:43 2022 +0200
@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+//go:build linux
 // +build linux
 
 package fsnotify
@@ -37,7 +38,6 @@
 			poller.close()
 		}
 	}()
-	poller.fd = fd
 
 	// Create epoll fd
 	poller.epfd, errno = unix.EpollCreate1(unix.EPOLL_CLOEXEC)