uapi: use kqueue for sock deletion on darwin

This commit is contained in:
Jason A. Donenfeld
2018-05-04 21:51:55 +02:00
parent ac898bb35a
commit e1de0f229a
2 changed files with 42 additions and 6 deletions

View File

@@ -227,6 +227,10 @@ func main() {
term := make(chan os.Signal)
uapi, err := UAPIListen(interfaceName, fileUAPI)
if err != nil {
logger.Error.Println("Failed to listen on uapi socket:", err)
os.Exit(ExitSetupFailed)
}
go func() {
for {