]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: don't negate eventfd errno
authorMichael Pratt <mpratt@google.com>
Tue, 9 Sep 2025 20:47:15 +0000 (16:47 -0400)
committerGopher Robot <gobot@golang.org>
Tue, 9 Sep 2025 21:05:36 +0000 (14:05 -0700)
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>

src/runtime/netpoll_epoll.go

index 48c03d119ffdd97525dd8f912db84de8c8e5edbd..e658cc3d89c6668d805eac0adf0f9a855b4d468b 100644 (file)
@@ -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{