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 <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
This commit is contained in:
Michael Pratt 2025-09-09 16:47:15 -04:00 committed by Gopher Robot
parent 836fa74518
commit d3be949ada

View file

@ -27,7 +27,7 @@ func netpollinit() {
} }
efd, errno := linux.Eventfd(0, linux.EFD_CLOEXEC|linux.EFD_NONBLOCK) efd, errno := linux.Eventfd(0, linux.EFD_CLOEXEC|linux.EFD_NONBLOCK)
if errno != 0 { if errno != 0 {
println("runtime: eventfd failed with", -errno) println("runtime: eventfd failed with", errno)
throw("runtime: eventfd failed") throw("runtime: eventfd failed")
} }
ev := linux.EpollEvent{ ev := linux.EpollEvent{