summaryrefslogtreecommitdiff
path: root/pkg/backend/init.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-06-01 11:28:51 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-06-01 12:34:09 +0200
commit330d11725884d301215e170a5c41e50f691109d7 (patch)
tree62dba1cb9c21aecb1e79fd100af0c7268084d623 /pkg/backend/init.go
parent00d9cdd235f8be27780a742d84eb22ce2c89f759 (diff)
[bug] abort if cannot acquire pid
Diffstat (limited to 'pkg/backend/init.go')
-rw-r--r--pkg/backend/init.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/backend/init.go b/pkg/backend/init.go
index f82c5dc..6fb794a 100644
--- a/pkg/backend/init.go
+++ b/pkg/backend/init.go
@@ -58,8 +58,7 @@ func initializeBitmask(errCh chan string, opts *InitOpts) {
err := pid.AcquirePID()
if err != nil {
log.Println("Error acquiring PID:", err)
- errCh <- err.Error()
- return
+ log.Fatal(err.Error())
}
b, err := bitmask.InitializeBitmask(ctx.cfg)