Skip to content

Commit d3be949

Browse files
prattmicgopherbot
authored andcommitted
runtime: don't negate eventfd errno
The Linux syscall package does this for us. Fixes golang#75337. Change-Id: I6a6a636c9bb5fe25fdc6f80dc8b538ebed60d00b Reviewed-on: https://go-review.googlesource.com/c/go/+/701796 Reviewed-by: Michael Knyszek <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Michael Pratt <[email protected]>
1 parent 836fa74 commit d3be949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/netpoll_epoll.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func netpollinit() {
2727
}
2828
efd, errno := linux.Eventfd(0, linux.EFD_CLOEXEC|linux.EFD_NONBLOCK)
2929
if errno != 0 {
30-
println("runtime: eventfd failed with", -errno)
30+
println("runtime: eventfd failed with", errno)
3131
throw("runtime: eventfd failed")
3232
}
3333
ev := linux.EpollEvent{

0 commit comments

Comments
 (0)