From 565f93531eae65ca85c286bf6bd2aa07eb713976 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Wed, 22 Apr 2020 11:45:31 -0700 Subject: V2 restore libpod.Shutdown() when exiting podman commands Signed-off-by: Jhon Honce --- pkg/domain/infra/abi/images.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/domain/infra/abi/images.go') diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go index d0b7b42b5..bed59b379 100644 --- a/pkg/domain/infra/abi/images.go +++ b/pkg/domain/infra/abi/images.go @@ -553,3 +553,10 @@ func (ir *ImageEngine) Remove(ctx context.Context, images []string, opts entitie return } + +// Shutdown Libpod engine +func (ir *ImageEngine) Shutdown(_ context.Context) { + shutdownSync.Do(func() { + _ = ir.Libpod.Shutdown(false) + }) +} -- cgit v1.2.3-54-g00ecf