From: Mikio Hara Date: Tue, 19 Mar 2019 09:32:11 +0000 (+0900) Subject: runtime: disable event scanning error reporting on solaris X-Git-Tag: go1.13beta1~968 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e0181ff52a17eeddd20b8560ce4abaa615388dd0;p=gostls13.git 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 TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- 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) } }