diff options
-rw-r--r-- | libpod/runtime.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index a39547a43..ae4b77bd4 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -541,11 +541,14 @@ func makeRuntime(runtime *Runtime) (err error) { } if doRefresh { manager, err = lock.NewSHMLockManager(lockPath, runtime.config.NumLocks) + if err != nil { + return errors.Wrapf(err, "error creating SHM locks for libpod") + } } else { manager, err = lock.OpenSHMLockManager(lockPath, runtime.config.NumLocks) - } - if err != nil { - return errors.Wrapf(err, "error initializing SHM locking") + if err != nil { + return errors.Wrapf(err, "error opening libpod SHM locks") + } } runtime.lockManager = manager @@ -720,7 +723,6 @@ func makeRuntime(runtime *Runtime) (err error) { if err2 := runtime.refresh(runtimeAliveFile); err2 != nil { return err2 } - } } |