9ec09fa3ae
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
14 lines
222 B
Go
14 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
|
|
}
|