diff options
Diffstat (limited to 'uapi_darwin.go')
-rw-r--r-- | uapi_darwin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uapi_darwin.go b/uapi_darwin.go index 449fb98..0f6d904 100644 --- a/uapi_darwin.go +++ b/uapi_darwin.go @@ -109,6 +109,11 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) { return } if kerr != nil || n != 1 { + if kerr != nil { + l.connErr <- kerr + } else { + l.connErr <- errors.New("kqueue returned empty") + } return } n, kerr = unix.Kevent(uapi.kqueueFd, []unix.Kevent_t{event}, events, nil) |