k3s/vendor/github.com/godbus/dbus/transport_unixcred_openbsd.go

15 lines
222 B
Go
Raw Normal View History

2019-09-27 21:51:53 +00:00
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
}