mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Remove dependency on linux packages in netstack.
PiperOrigin-RevId: 536560224
This commit is contained in:
committed by
gVisor bot
parent
8ee5c3dfea
commit
d23e3cca23
@@ -12,8 +12,6 @@ go_library(
|
||||
],
|
||||
visibility = ["//:sandbox"],
|
||||
deps = [
|
||||
"//pkg/abi/linux/errno",
|
||||
"//pkg/errors",
|
||||
"//pkg/log",
|
||||
"//pkg/waiter",
|
||||
],
|
||||
|
||||
@@ -24,11 +24,10 @@ package context
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"gvisor.dev/gvisor/pkg/abi/linux/errno"
|
||||
"gvisor.dev/gvisor/pkg/errors"
|
||||
"gvisor.dev/gvisor/pkg/log"
|
||||
"gvisor.dev/gvisor/pkg/waiter"
|
||||
)
|
||||
@@ -102,7 +101,7 @@ func (nt *NoTask) Block(C <-chan struct{}) error {
|
||||
}
|
||||
select {
|
||||
case <-nt.cancel:
|
||||
return errors.New(errno.EINTR, "interrupted system call") // Interrupted.
|
||||
return errors.New("interrupted system call") // Interrupted.
|
||||
case <-C:
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -70,8 +70,6 @@ deps_test(
|
||||
"//pkg/sync/locking",
|
||||
"//pkg/waiter",
|
||||
"//pkg/xdp",
|
||||
"//pkg/abi/linux/errno",
|
||||
"//pkg/errors",
|
||||
|
||||
# Other deps.
|
||||
"@com_github_google_btree//:go_default_library",
|
||||
|
||||
Reference in New Issue
Block a user