From caf87fdf593c2119e76e46a2e24792cc27d26925 Mon Sep 17 00:00:00 2001 From: Nick Ethier Date: Mon, 11 Mar 2019 21:57:21 -0400 Subject: [PATCH] fix possible panic in libcontainer shim init --- nsenter_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/nsenter_linux.go b/nsenter_linux.go index 7579483c4..7beacc799 100644 --- a/nsenter_linux.go +++ b/nsenter_linux.go @@ -19,6 +19,7 @@ func init() { factory, _ := libcontainer.New("") if err := factory.StartInitialization(); err != nil { hclog.L().Error("failed to initialize libcontainer-shim", "error", err) + os.Exit(1) } panic("--this line should have never been executed, congratulations--") }