diff options
Diffstat (limited to 'pkg/eventchannel')
-rw-r--r-- | pkg/eventchannel/event.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/eventchannel/event.go b/pkg/eventchannel/event.go index 7172ce75d..98dfeb1f5 100644 --- a/pkg/eventchannel/event.go +++ b/pkg/eventchannel/event.go @@ -22,8 +22,8 @@ package eventchannel import ( "encoding/binary" "fmt" - "syscall" + "golang.org/x/sys/unix" "google.golang.org/protobuf/encoding/prototext" "google.golang.org/protobuf/proto" pb "gvisor.dev/gvisor/pkg/eventchannel/eventchannel_go_proto" @@ -155,7 +155,7 @@ func (s *socketEmitter) Emit(msg proto.Message) (bool, error) { for done := 0; done < len(p); { n, err := s.socket.Write(p[done:]) if err != nil { - return (err == syscall.EPIPE), err + return (err == unix.EPIPE), err } done += n } |