From: Michael Pratt Date: Tue, 9 Sep 2025 20:47:15 +0000 (-0400) Subject: runtime: don't negate eventfd errno X-Git-Tag: go1.26rc1~925 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d3be949ada01d7827f8edc87665fef5268634cb3;p=gostls13.git runtime: don't negate eventfd errno The Linux syscall package does this for us. Fixes #75337. Change-Id: I6a6a636c9bb5fe25fdc6f80dc8b538ebed60d00b Reviewed-on: https://go-review.googlesource.com/c/go/+/701796 Reviewed-by: Michael Knyszek LUCI-TryBot-Result: Go LUCI Auto-Submit: Michael Pratt --- diff --git a/src/runtime/netpoll_epoll.go b/src/runtime/netpoll_epoll.go index 48c03d119f..e658cc3d89 100644 --- a/src/runtime/netpoll_epoll.go +++ b/src/runtime/netpoll_epoll.go @@ -27,7 +27,7 @@ func netpollinit() { } efd, errno := linux.Eventfd(0, linux.EFD_CLOEXEC|linux.EFD_NONBLOCK) if errno != 0 { - println("runtime: eventfd failed with", -errno) + println("runtime: eventfd failed with", errno) throw("runtime: eventfd failed") } ev := linux.EpollEvent{