aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/netpoll_solaris.go
diff options
context:
space:
mode:
authorMikio Hara <mikioh.public.networking@gmail.com>2019-03-19 18:32:11 +0900
committerMikio Hara <mikioh.public.networking@gmail.com>2019-03-20 06:11:00 +0000
commite0181ff52a17eeddd20b8560ce4abaa615388dd0 (patch)
tree77b2624ba296167eb1c05340af69ba37db0f0a57 /src/runtime/netpoll_solaris.go
parent5714c91b532f3ac9b354cd8302c63aa6f9ab53e7 (diff)
downloadgo-e0181ff52a17eeddd20b8560ce4abaa615388dd0.tar.gz
go-e0181ff52a17eeddd20b8560ce4abaa615388dd0.zip
runtime: disable event scanning error reporting on solaris
It seems like we need to pay special attention to capturing error condition on the event port of SmartOS. The previous attempt CL 167777 works on Oracle Solaris but doesn't work on SmartOS for the uncertain reason. It's better to disable the reporting for now. Updates #30624. Fixes #30840. Change-Id: Ieca5dac4fceb7e8c9cb4db149bb4c2e79691588c Reviewed-on: https://go-review.googlesource.com/c/go/+/167782 Run-TryBot: Mikio Hara <mikioh.public.networking@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/netpoll_solaris.go')
-rw-r--r--src/runtime/netpoll_solaris.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/runtime/netpoll_solaris.go b/src/runtime/netpoll_solaris.go
index b4bb40ed9b..ddddb27962 100644
--- a/src/runtime/netpoll_solaris.go
+++ b/src/runtime/netpoll_solaris.go
@@ -233,10 +233,11 @@ retry:
}
if mode != 0 {
- pd.everr = false
- if ev.portev_events == _POLLERR {
- pd.everr = true
- }
+ // TODO(mikio): Consider implementing event
+ // scanning error reporting once we are sure
+ // about the event port on SmartOS.
+ //
+ // See golang.org/x/issue/30840.
netpollready(&toRun, pd, mode)
}
}