mirror of https://github.com/subgraph/fw-daemon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
222 B
15 lines
222 B
8 years ago
|
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
|
||
|
}
|