From d3be949ada01d7827f8edc87665fef5268634cb3 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 9 Sep 2025 16:47:15 -0400 Subject: [PATCH] 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 --- src/runtime/netpoll_epoll.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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{ -- 2.52.0