summaryrefslogtreecommitdiffhomepage
path: root/main.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-04 21:51:55 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-04 21:51:55 +0200
commite1de0f229a8f2cbfc4bb56230de885386a775fd6 (patch)
treeba5d5a0da858f4928e85271e9dafccaee3bb9484 /main.go
parentac898bb35afde34a383f72726c2818d082933e8d (diff)
uapi: use kqueue for sock deletion on darwin
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8562bf6..e7e0488 100644
--- a/main.go
+++ b/main.go
@@ -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 {