mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
836fa74518
commit
d3be949ada
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue