blob: af7bafdf953b8087cba29d89edd2949be007fd02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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
}
|