aboutsummaryrefslogtreecommitdiff
path: root/test/codegen/math.go
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-03-01 19:55:22 +0100
committerTobias Klauser <tobias.klauser@gmail.com>2021-03-02 06:08:56 +0000
commitebb92dfed96fadb3c563ff11cead85bbb7536793 (patch)
treeeed2b4258619c50f85431ba5f93a08d31b7346e8 /test/codegen/math.go
parent4c1a7ab49c4c68907bc7f7f7f776edd9116584a5 (diff)
downloadgo-ebb92dfed96fadb3c563ff11cead85bbb7536793.tar.xz
internal/poll, runtime: handle netpollopen error in poll_runtime_pollOpen
When netpollopen in poll_runtime_pollOpen returns an error, the work in runtime_pollUnblock and runtime_pollClose can be avoided since the underlying system call to set up the poller failed. E.g. on linux, this avoids calling netpollclose and thus epoll_ctl(fd, EPOLL_CTL_DEL, ...) in case the file does not support epoll, i.e. epoll_ctl(fd, EPOLL_CTL_ADD, ...) in netpollopen failed. Fixes #44552 Change-Id: I564d90340fd1ab3a6490526353616a447ae0cfb8 Reviewed-on: https://go-review.googlesource.com/c/go/+/297392 Trust: Tobias Klauser <tobias.klauser@gmail.com> Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'test/codegen/math.go')
0 files changed, 0 insertions, 0 deletions