We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1485a34 commit 924410fCopy full SHA for 924410f
open_mode_bsd.go
@@ -8,4 +8,4 @@ package fsnotify
8
9
import "golang.org/x/sys/unix"
10
11
-const openMode = unix.O_NONBLOCK | unix.O_RDONLY
+const openMode = unix.O_NONBLOCK | unix.O_RDONLY | unix.O_CLOEXEC
open_mode_darwin.go
@@ -9,4 +9,4 @@ package fsnotify
// note: this constant is not defined on BSD
12
-const openMode = unix.O_EVTONLY
+const openMode = unix.O_EVTONLY | unix.O_CLOEXEC
0 commit comments