Skip to content

Commit 21a634e

Browse files
committed
os: drop special case for FreeBSD 10.4 in newFile
Support for FreeBSD 10 will be dropped with Go 1.13, so revert the workaround introduced in CL 157099. Updates #29633 Updates #27619 Change-Id: I1a2e50d3f807a411389f3db07c0f4535a590da02 Reviewed-on: https://go-review.googlesource.com/c/go/+/165801 Run-TryBot: Tobias Klauser <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 9fedec7 commit 21a634e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/os/file_unix.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,7 @@ func newFile(fd uintptr, name string, kind newFileKind) *File {
123123
if kind == kindOpenFile {
124124
var st syscall.Stat_t
125125
switch runtime.GOOS {
126-
case "freebsd":
127-
// On FreeBSD before 10.4 it used to crash the
128-
// system unpredictably while running all.bash.
129-
// When we stop supporting FreeBSD 10 we can merge
130-
// this into the dragonfly/netbsd/openbsd case.
131-
// Issue 27619.
132-
pollable = false
133-
134-
case "dragonfly", "netbsd", "openbsd":
126+
case "dragonfly", "freebsd", "netbsd", "openbsd":
135127
// Don't try to use kqueue with regular files on *BSDs.
136128
// On FreeBSD a regular file is always
137129
// reported as ready for writing.

0 commit comments

Comments
 (0)