mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-18 22:04:22 +01:00
Add new vendor library "github.com/containerd/cgroups" commit: 5017d4e9a9cf2d4381db99eacd9baf84b95bfb14 This library is for host cgroup support for next commit. Signed-off-by: Wei Zhang <zhangwei555@huawei.com>
15 lines
222 B
Go
15 lines
222 B
Go
package dbus
|
|
|
|
import "io"
|
|
|
|
func (t *unixTransport) SendNullByte() error {
|
|
n, _, err := t.UnixConn.WriteMsgUnix([]byte{0}, nil, nil)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if n != 1 {
|
|
return io.ErrShortWrite
|
|
}
|
|
return nil
|
|
}
|