mirror of
https://github.com/KusakabeShi/EtherGuard-VPN.git
synced 2024-11-23 07:43:09 +01:00
Send event on erroring kqueue
This commit is contained in:
parent
7e10ebe101
commit
29b0453cf1
@ -109,6 +109,11 @@ func UAPIListen(name string, file *os.File) (net.Listener, error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if kerr != nil || n != 1 {
|
if kerr != nil || n != 1 {
|
||||||
|
if kerr != nil {
|
||||||
|
l.connErr <- kerr
|
||||||
|
} else {
|
||||||
|
l.connErr <- errors.New("kqueue returned empty")
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
n, kerr = unix.Kevent(uapi.kqueueFd, []unix.Kevent_t{event}, events, nil)
|
n, kerr = unix.Kevent(uapi.kqueueFd, []unix.Kevent_t{event}, events, nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user