mirror of
https://github.com/golang/go.git
synced 2026-02-01 16:42:04 +03:00
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:
committed by
Gopher Robot
parent
836fa74518
commit
d3be949ada
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user