mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-06 16:04:26 +01:00
164bd8ctest/fmt: drop extra newlines73555a4qmp: add query-status API234e0edqemu: fix memory prealloc handling30bfcaaqemu: add debug logfile dep now checks for dependency recersively. runtime-spec and gogo protobuf are also updated as being required by kata agent. Solving failure: No versions of github.com/kata-containers/agent met constraints: 94e2a254a94a77c02280f4f84d7f82269be163ce: Could not introduce github.com/kata-containers/agent@94e2a254a94a77c02280f4f84d7f82269be163ce, as it has a dependency on github.com/opencontainers/runtime-spec with constraint a1b50f621a48ad13f8f696a162f684a241307db0, which has no overlap with existing constraint 5806c35637336642129d03657419829569abc5aa from (root) Solving failure: No versions of github.com/kata-containers/agent met constraints: 94e2a254a94a77c02280f4f84d7f82269be163ce: Could not introduce github.com/kata-containers/agent@94e2a254a94a77c02280f4f84d7f82269be163ce, as it has a dependency on github.com/gogo/protobuf with constraint 4cbf7e384e768b4e01799441fdf2a706a5635ae7, which has no overlap with existing constraint 342cbe0a04158f6dcb03ca0079991a51a4248c02 from (root) Signed-off-by: Peng Tao <bergwolf@hyper.sh>
36 lines
1.0 KiB
Go
36 lines
1.0 KiB
Go
//+build !go1.12,linux
|
|
|
|
package vsock
|
|
|
|
import (
|
|
"fmt"
|
|
"runtime"
|
|
"syscall"
|
|
"time"
|
|
|
|
"golang.org/x/sys/unix"
|
|
)
|
|
|
|
func (lfd *sysListenFD) accept4(flags int) (int, unix.Sockaddr, error) {
|
|
// In Go 1.11, accept on the raw file descriptor directly, because lfd.f
|
|
// may be attached to the runtime network poller, forcing this call to block
|
|
// even if Close is called.
|
|
return unix.Accept4(lfd.fd, flags)
|
|
}
|
|
|
|
func (*sysListenFD) setDeadline(_ time.Time) error {
|
|
// Listener deadlines won't work as expected in this version of Go, so
|
|
// return an early error.
|
|
return fmt.Errorf("vsock: listener deadlines not supported on %s", runtime.Version())
|
|
}
|
|
|
|
func (*sysConnFD) shutdown(_ int) error {
|
|
// Shutdown functionality is not available in this version on Go.
|
|
return fmt.Errorf("vsock: close conn read/write not supported on %s", runtime.Version())
|
|
}
|
|
|
|
func (*sysConnFD) syscallConn() (syscall.RawConn, error) {
|
|
// SyscallConn functionality is not available in this version on Go.
|
|
return nil, fmt.Errorf("vsock: syscall conn not supported on %s", runtime.Version())
|
|
}
|